Toots for MuseumShuffle@mastodon.social account

Written by Chris Wu :toucan: on 2025-01-27 at 15:28

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

Written by Chris Wu :toucan: on 2025-01-25 at 23:01

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

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2025-01-23 at 16:34

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

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2025-01-21 at 22:12

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

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2025-01-18 at 23:30

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

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2025-01-13 at 21:15

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

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2025-01-08 at 16:54

Making my home office feel comfortable. Almost there!

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2025-01-07 at 15:39

Siri I just want the time in UTC. 😭

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2025-01-03 at 22:59

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. 🥶

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2024-12-30 at 03:01

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.

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2024-12-21 at 20:22

I don't appreciate being called a monster.

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2024-12-17 at 23:03

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

Written by Chris Wu :toucan: on 2024-12-08 at 19:49

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!

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2024-12-06 at 00:36

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

Written by Chris Wu :toucan: on 2024-12-01 at 15:45

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

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2024-11-22 at 22:53

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

Written by Chris Wu :toucan: on 2024-11-18 at 15:59

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.

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2024-11-11 at 03:33

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! 🫣

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2024-11-04 at 22:48

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.

=> View attached media

=> More informations about this toot | View the thread

Written by Chris Wu :toucan: on 2024-11-01 at 20:19

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

=> View attached media

=> More informations about this toot | View the thread

=> This profile with reblog | Go to MuseumShuffle@mastodon.social account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/109521325408816075
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
392.135055 milliseconds
Gemini-to-HTML Time
5.071151 milliseconds

This content has been proxied by September (3851b).