Posts

Post not yet marked as solved
13 Replies
0 Views
Xcode 14Beta didn't help actually. Still crashing
Post not yet marked as solved
27 Replies
0 Views
import SwiftUI struct ContentView: View {   var body: some View {       ScrollViewReader { proxy in           ScrollView {               VStack {                   Color.yellow                       .frame(height: 900)                   ScrollButton(proxy: proxy)                   Color.yellow                       .frame(height: 900)               }               .padding(.horizontal, 40)           }       }   } } struct ScrollButton: View {   let proxy: ScrollViewProxy   @Namespace var bottomId     var body: some View {         VStack {             Button("Scroll") {                 withAnimation {                     proxy.scrollTo(bottomId, anchor: .top)                                     }             }         }.id(bottomId)     } } struct ContentView_Previews: PreviewProvider {   static var previews: some View {     ContentView()   } }
Post not yet marked as solved
27 Replies
0 Views
I have the same issue but in horizontal direction
Post not yet marked as solved
3 Replies
0 Views
I have similar problem: my UIView's gestures convict with SwiftUI view's gestures. They trigger simultaneously :(