Post

Replies

Boosts

Views

Activity

Reply to Implement Geometryreader in a tabview
It was necessary to implement geometryreader inside the tabView.                                                                   ScrollView(.vertical, showsIndicators: false, content:{                                 NewsView()                                     .tag(0)                                     .padding(.top, 10)                                     .overlay(                                                                   GeometryReader{proxy -> Color in                                                                                   let minY = proxy.frame(in: .global).minY                                                                                         print(minY)                                                                                       return Color.clear                                         }                                         .frame(width: 0, height: 0)                                     )                     }                                 )                     ProgressView().tag(1)                     MyTrophiesView().tag(2)                                 }                 .tabViewStyle(.page(indexDisplayMode: .never)).edgesIgnoringSafeArea(.all)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’22