Post

Replies

Boosts

Views

Activity

Reply to Why the navigationBar/shouldPop is no more called?
This is still an issue with Xcode 16.2 and iOS 18.2. The UINavigationBarDelegate method navigationBar(_:shouldPop:) is not called as expected when running an app in debug mode / with "debug executable" checked (attached to Xcode). It works as expected and according to documentation only in release builds or when unchecking "debug executable" in Product -> Scheme -> Edit Scheme… -> Run -> Info This issue causes confusion during development and testing. Perhaps the accepted answer should not be accepted, since it is still an issue (that it doesn't work according to documentation in debug mode)?
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’25
Reply to Picker value resets when in a sheet, but works fine in parent View
Isn't that unrelated to the issue I described? (The selectedValue doesn't need to affect ContentView in order to demonstrate the issue.) Here is the issue again: While the sheet is open, and I try to scroll through the picke's items, it is impossible to reach to the bottom, because it will scroll back to the top once every second, each time the randomByte is updated. Why is this, and how can I make the picker in the sheet not reset/scroll back to the top every time randomByte is updated?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’23
Reply to Why the navigationBar/shouldPop is no more called?
This is still an issue with Xcode 16.2 and iOS 18.2. The UINavigationBarDelegate method navigationBar(_:shouldPop:) is not called as expected when running an app in debug mode / with "debug executable" checked (attached to Xcode). It works as expected and according to documentation only in release builds or when unchecking "debug executable" in Product -> Scheme -> Edit Scheme… -> Run -> Info This issue causes confusion during development and testing. Perhaps the accepted answer should not be accepted, since it is still an issue (that it doesn't work according to documentation in debug mode)?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Picker value resets when in a sheet, but works fine in parent View
Isn't that unrelated to the issue I described? (The selectedValue doesn't need to affect ContentView in order to demonstrate the issue.) Here is the issue again: While the sheet is open, and I try to scroll through the picke's items, it is impossible to reach to the bottom, because it will scroll back to the top once every second, each time the randomByte is updated. Why is this, and how can I make the picker in the sheet not reset/scroll back to the top every time randomByte is updated?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Xcode Previews bug? View is not re-rendered as expected
Thanks Developer Tools Engineer, I cannot use Xcode 15 / #Preview macro in this project, but replacing the Group with a ZStack works!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’23