Post

Replies

Boosts

Views

Activity

Comment on .autocorrectionDisabled() not updating with @State variable
Thanks for taking a minute to check it out and share back! We’ve discovered adding .id(autocorrectionDisabled) will “refresh” the textEditor and thusly read the new bool value. However, it causes the TextEditor to lose focus and lowers the keyboard. This won’t work for our use case. Also, we found by tapping into another textEditor, then tapping back to the first will cause the updated bool value to be used correctly. That’s also not a fit for our use case. Maybe this helps someone else!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’24
Comment on Old CloudKit Data Repopulating after a Local Reset
Thank you greatly for the insight! You shared an unknown resource to us. Since we are only configuring only 1 zone and the objective is to delete every record, would using modifyRecordZones(saving:deleting:) to simply delete the zone then start our app from the beginning have the same outcome (and be more Swifty?)
Replies
Boosts
Views
Activity
Jun ’25
Comment on iOS17 UITextView inputView becomFirstResponder does not work
For anyone else, it turns out my bug is due to using the .disabled() modifier and it is well discussed here: https://developer.apple.com/forums/thread/737964 Now onto deciding how I want to handle it 🙄
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’25
Comment on .autocorrectionDisabled() not updating with @State variable
Thanks for taking a minute to check it out and share back! We’ve discovered adding .id(autocorrectionDisabled) will “refresh” the textEditor and thusly read the new bool value. However, it causes the TextEditor to lose focus and lowers the keyboard. This won’t work for our use case. Also, we found by tapping into another textEditor, then tapping back to the first will cause the updated bool value to be used correctly. That’s also not a fit for our use case. Maybe this helps someone else!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24