I wrote a blog post about the crash I was experiencing with my TestFlight build and how turning off Debug mode was the key to debugging it.
https://chriswu.com/posts/swiftui/nodebug/
[#]SwiftUI #Xcode
=> More informations about this toot | View the thread
Got a tip from @danielsaidi and @babbage to try running my crashing TestFlight app in release mode (which I've never done before).
It immediately told me that child View IDs must be unique.
I stopped it with this .id line. Still not sure why this works just fine in debug mode. 🤔
[#]SwiftUI
=> More informations about this toot | View the thread
I've determined that my app is crashing because of where I was trying to be fancy with ViewThatFits.
It works perfectly fine on device but when I run it through TestFlight on the same device it's an instant crash at launch inside SizeFittingState.applyChildren(selectLast:to:). 🤔
[#]SwiftUI
=> More informations about this toot | View the thread
I noticed something really odd in this crash I'm investigating.
The crash report is showing it's from an iPhone 16 Pro but I'm 1000% certain that it's from my iPad.
I don't know if this is related to the crash or just a display error of the crash report. 🤷🏻♂️
[#]SwiftUI #Xcode
=> More informations about this toot | View the thread
When the app is in Slide Over mode I only had room to show the rain percent chance because of how I was formatting dates.
Now that I'm using ViewThatFits for dates I can sometimes squeeze in the rain amount also!
[#]SwiftUI
=> More informations about this toot | View the thread
I shared a (still great) tip last week about using ViewThatFits to show as much of a date as possible.
It will actually cause a crash if your language is set to German.
The problem is the weekday is the same for abbreviated and short, which causes some duplicates. That's a problem since they're used in a ForEach that is using self for an id.
[#]SwiftUI
=> More informations about this toot | View the thread
Making my home office feel comfortable. Almost there!
=> More informations about this toot | View the thread
Siri I just want the time in UTC. 😭
=> More informations about this toot | View the thread
I alternate between disbelief and skepticism when someone tells me that they actually like winter.
In unrelated news @provuejim talked me into buying a heated vest. 🥶
=> More informations about this toot | View the thread
I am really confused by some of the new data returned in WeatherKit for iOS 18.
The visibility (of an object) was already being returned in an hour's data.
They added max/min visibility (of terrain) in the day's data. BUT instead of a measurement of unit length it's just a Double.
The description makes it sound like it's also a distance and not a percentage. So how would I know what unit to use?
The iOS weather app refers to the lowest/highest visibility in my preferred unit, which is miles.
=> More informations about this toot | View the thread
I don't appreciate being called a monster.
=> More informations about this toot | View the thread
By FAR the biggest Apple pain point I have (besides Apple Watch faces of course) is Reminders on macOS. I adore it and can't live without it
But the popup is always blocking something I need access to.
If I could make it appear on the bottom left/right of the screen then that wouldn't be an issue.
FB16115759
=> More informations about this toot | View the thread
It's on like Donkey Kong.
Please Don't Rain will be ready on iOS 18.2 release day.
What a weight off of my shoulders!
=> More informations about this toot | View the thread
I’m almost embarrassed to ask this, but if I put the beta version of macOS on my laptop that won’t prevent me from submitting a final iOS 18.2 build to the App Store, correct?
=> More informations about this toot | View the thread
I decided to move a function to a different file AND add a new argument to it.
Xcode's cmd-shift-O shortcut shows the old version that doesn't exist any more as the top two choices.
Is there a way to get rid of them without deleting derived data? I built the project several times before I noticed this.
[#]Xcode
=> More informations about this toot | View the thread
I was completely baffled as to why my SwiftUI TextField was completely ignoring my FocusState and .onSubmit and not dismissing the keyboard when the "done" button was pressed.
It turns out that it will do that if you have an axis of .vertical specified. 🤔
[#]SwiftUI
https://stackoverflow.com/a/76593519
=> More informations about this toot | View the thread
I've been cracking up using friends as test subjects for adding Image Playground support to Please Don't Rain but I quickly ran into a problem. It started to become too hard to pick a single favorite for each weather category.
I already had an option to use random images. Seems like a great time to add the option to restrict those random images to Image Playground creations.
=> More informations about this toot | View the thread
If you search for “Genmoji SwiftUI” on Google and Duck Duck Go my content is on the front page of results.
I haven’t even added support for Genmoji yet! 🫣
=> More informations about this toot | View the thread
The only collaboration that happened in the office today was when a coworker excitedly showed me a picture they took for me.
Totally worth a one hour drive.
=> More informations about this toot | View the thread
Please Don't Rain was infrequently acting weird with my least favorite thing in the world (cold weather).
I figured out it's because WeatherKit is sometimes sending a precipitation of .none but the snowfallAmount (which is new in iOS 18) is non-zero.
Filed FB15655811
=> More informations about this toot | View the thread
=> This profile with reblog | Go to MuseumShuffle@mastodon.social account This content has been proxied by September (3851b).Proxy Information
text/gemini