Post

Replies

Boosts

Views

Activity

Comment on Xcode 15's "Replace Container" feature replaces the container with incorrect permissions?
I updated my iPad to iOS 17.0.3 thinking maybe Apple was on top of this and that this would fix it. No such luck. All I get is a different error. I'm still hosed. BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/F69182D8-2930-4882-A8F6-D76179F1E87B.sb-857f9996-cxGWIo/Documents/MY_DB_File.sqlite invalidated open fd: 3 (0x11)
Oct ’23
Comment on .main is going to be deprecated
After more testing I've found that this does not run in AppDelegate. It's actually in a func inside AppDelegate that fires when the device is rotated. If you are still willing to help me out, Claude , I can post the complete code. Probably should have done that in the beginning. My bad. let firstScene = window?.windowScene if let w = firstScene as? UIWindowScene { let screenSize = w.screen.bounds print("screenSize", screenSize) }
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’22
Comment on How to set up an auto layout constraint to be a % value
Thank you, Claude. Your first method doesn't make the constraint value a % of the screen width, or does it? I've been using the second method already. I was thinking autolayout word be a better way to go. Most of my UI is set up to make the constraint values a % of the screen height/width. I've been setting the control to centered and adjusting the leading constraint using the screen width/height. Makes for cleaner layout. I guess I'll have to rethink the way I was planning to use autolayout.
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’22
Comment on Xcode 15's "Replace Container" feature replaces the container with incorrect permissions?
I updated my iPad to iOS 17.0.3 thinking maybe Apple was on top of this and that this would fix it. No such luck. All I get is a different error. I'm still hosed. BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/F69182D8-2930-4882-A8F6-D76179F1E87B.sb-857f9996-cxGWIo/Documents/MY_DB_File.sqlite invalidated open fd: 3 (0x11)
Replies
Boosts
Views
Activity
Oct ’23
Comment on .main is going to be deprecated
After more testing I've found that this does not run in AppDelegate. It's actually in a func inside AppDelegate that fires when the device is rotated. If you are still willing to help me out, Claude , I can post the complete code. Probably should have done that in the beginning. My bad. let firstScene = window?.windowScene if let w = firstScene as? UIWindowScene { let screenSize = w.screen.bounds print("screenSize", screenSize) }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on How to set up an auto layout constraint to be a % value
Thank you, Claude. Your first method doesn't make the constraint value a % of the screen width, or does it? I've been using the second method already. I was thinking autolayout word be a better way to go. Most of my UI is set up to make the constraint values a % of the screen height/width. I've been setting the control to centered and adjusting the leading constraint using the screen width/height. Makes for cleaner layout. I guess I'll have to rethink the way I was planning to use autolayout.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22