Skip to content

Commit

Permalink
Improve feed source dropdown on iOS drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
prof18 committed Oct 22, 2023
1 parent 2da0c99 commit 41cc6f5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions iosApp/Source/App/Drawer/SidebarDrawer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,24 @@ struct SidebarDrawer: View {
) { drawerItem in
if let drawerFeedSource = drawerItem as? DrawerItem.DrawerFeedSource {
HStack {
VStack(alignment: .leading) {
Text(drawerFeedSource.feedSource.title)

Text(drawerFeedSource.feedSource.url)
}
Image(systemName: "square.stack.3d.up")

Text(drawerFeedSource.feedSource.title)
.lineLimit(2)
.font(.system(size: 16))
.padding(.bottom, 2)
.padding(.leading, Spacing.small)

Spacer()
}
.listRowInsets(
EdgeInsets(
top: Spacing.small,
leading: .zero,
bottom: Spacing.small,
trailing: Spacing.small)
)
.contentShape(Rectangle())
.onTapGesture {
self.selectedDrawerItem = drawerItem
Expand Down

0 comments on commit 41cc6f5

Please sign in to comment.