Post

Replies

Boosts

Views

Activity

Reply to iOS17 UITextView inputView becomFirstResponder does not work
Using TextField in an .alert() and this bug seems to be preventing the OK button from executing: .alert("New Category", isPresented: $showNewCategoryNameAlert) { TextField("Enter Name", text: $userNewCategoryName) Button("OK", action: { print("Clicked OK") addCategory(newName: userNewCategoryName) userNewCategoryName = "" }).disabled(userNewCategoryName.isEmpty) Button("Cancel", role: .cancel) { } Enter Name Tap OK - dismisses Print statement and addCategory don't run BUT! Launch the .alert() again and click OK, everything executes. This issue is not present in iOS 18. Open to ideas for a work around!
Topic: UI Frameworks SubTopic: General Tags:
2d
Reply to SwiftUI: Conditionally switching between .fullScreenCover() and .sheet() not working
For anyone else stumbling on this post like I did... I verified OP @NicolasBrunnerSRF post appears to be an issue in ipadOS 17.x; but is resolved in ipadOS 18.x. The code recognizes the horizontal size has changed; but SwiftUI doesn't reflect the change in the UI element from sheet to fullScreenCover. I haven't found a work around :-\ @NicolasBrunnerSRF thanks for sharing your .modal ViewModifier.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w