Hi, I can't get onScrollPhaseChange to fire when using a List. It works as expected when using a ScollView and LazyVStack.
Interestingly, onScrollGeometryChange gets called as expected for both List and ScrollView.
Has anyone successfully used onScrollPhaseChange with a List?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I'm trying to use @Query in a wrapper view around a Button to keep a macOS menu command up to date but I keep getting
Set a .modelContext in view's environment to use Query
even though
@Environment(\.modelContext) private var modelContext
is part of the views.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Is the new Observations API for WebPage not available in Beta 1 as demoed in the WWDC video? I get this error even though Observation is imported.
Hi,
How are we supposed to handle links with target="_blank" in the new SwiftUI WebView? I don't see anything in WebPage.NavigationDeciding or elsewhere that corresponds to the delegate method used for WKWebView.