Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var body: some View {
- NavigationStack {
- TabView {
- Tab("Home", systemImage: "house") {
- ScrollView {
- ForEach(0..<40) { index in // Repeats 5 times (0, 1, 2, 3, 4)
- Text("Item \(index + 1)")
- }
- }
- }
- }
- .tabViewStyle(.sidebarAdaptable)
- .tabViewSidebarBottomBar {
- HStack {
- AsyncImage(url: URL(string: "https://github.com/futuremappermydud.png")) { image in
- image.resizable()
- } placeholder: {
- Color.gray
- }
- .frame(width: 28, height: 28)
- .clipShape(.rect(cornerRadius: 14))
- Text("FutureMapper")
- }
- .padding(3)
- }
- .toolbar(removing: .title)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment