Guest User

sw

a guest
Aug 26th, 2025
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.99 KB | None | 0 0
  1. var body: some View {
  2.         NavigationStack {
  3.             TabView {
  4.                 Tab("Home", systemImage: "house") {
  5.                     ScrollView {
  6.                         ForEach(0..<40) { index in // Repeats 5 times (0, 1, 2, 3, 4)
  7.                             Text("Item \(index + 1)")
  8.                         }
  9.                     }
  10.                 }
  11.             }
  12.             .tabViewStyle(.sidebarAdaptable)
  13.             .tabViewSidebarBottomBar {
  14.                 HStack {
  15.                     AsyncImage(url: URL(string: "https://github.com/futuremappermydud.png")) { image in
  16.                         image.resizable()
  17.                     } placeholder: {
  18.                         Color.gray
  19.                     }
  20.                     .frame(width: 28, height: 28)
  21.                     .clipShape(.rect(cornerRadius: 14))
  22.                     Text("FutureMapper")
  23.                 }
  24.                 .padding(3)
  25.             }
  26.             .toolbar(removing: .title)
  27.         }
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment