Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import SwiftUI
  2.  
  3. struct GameRootView: View {
  4.  
  5. var body: some View {
  6. TabView {
  7. ForEach(Platform.allCases, id: \.self) { p in
  8. GameListView(platform: p).tag(p)
  9. .tabItem {
  10. Image(p.assetName)
  11. Text(p.description)
  12. }
  13. }
  14. }
  15. .edgesIgnoringSafeArea(.top)
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement