Jeremy Gale
121 posts

Jeremy Gale
@jgale_ios
iOS Developer passionate about SwiftUI
Katılım Ağustos 2020
27 Takip Edilen38 Takipçiler

@jgale_ios @appstorage I saw the AppSettings implementation. The tedious part is adding objectWillChange.send() for every flag. Looks like no free lunch to have publishing.
English

@samwize I saw your post on observing @AppStorage, and had the same problem. I highly recommend this tiny library called Foil that lets you use a similar API to @AppStorage but is observable. Check the example app.
github.com/jessesquires/F…
English

@jgale_ios @appstorage Thanks. Does it supporting SwiftUI such that it can bind easily?
English
Jeremy Gale retweetledi
Jeremy Gale retweetledi

Made my first Xcode extension — it's called Multiliner and it expands long lines. GitHub: github.com/aheze/Multilin…
English
Jeremy Gale retweetledi

OMG. This site by @bretto is AMAZING goshdarnformatstyle.com
(And yes, there’s also the NSFW version of the URL)
English

What a joy to be able to preview SwiftUI views again from isolated packages.
@jgale_ios, thank you very much for writing about this topic; the post helps a lot. 🙏
@Dimillian, I guess we can use this workaround until Apple fixes the issue once for all.

English

@bionik6 @Dimillian @alpennec Using the full app target is hopeless if your app is anything bigger than trivial. Good to hear they hope to have it fixed for public release!
English

[2/2] ... it was supposed to work.
They don't have an ETA for this issue, but they're working on a fix.
I hope to have this fixed before the public release. 🤞
cc: @Dimillian, @jgale_ios, @alpennec
English

[1/2] First off, this is an issue the team is aware of.
The workaround they gave me that didn't work is to switch to the app scheme, not the package one, to have the previews working again. As I said, it didn't work for me, and they asked me to file a bug because...
Ibrahima Ciss@bionik6
Have 2 labs appointments today with the Swift team. I’ll make sure to raise those Swift package issues I’ve been encountering for months 😊
English

@bionik6 @Dimillian @merowing_ You're welcome. I am trying to get a Labs appointment to get them to knowledge it.
English

@jgale_ios @Dimillian @merowing_ Hey Jeremy, nice hack.
There are still some previews crashing but the majority are now working, thanks to your solution.
I hope the Xcode team fixes this before the public release.
Thank you anyway 🙏
English

@bionik6 @Dimillian @merowing_ I've never checked out Inject but I wrote a blog post on a workaround for this issue, even calling the package DesignSystem. dev.jeremygale.com/swiftui-how-to…
English

@Dimillian They didn’t fix that issue yet. Previews still crash when using resources from another package. It’s a bummer for me because all my assets are stored in a DesignSystem package which is imported by other ones 😭
Inject by @merowing_ is my solution for now.
English

@danielsaidi @mecid Yup, workaround is still OK. I tried requesting a lab session to plead my case in person.
English

@jgale_ios @mecid That’s too bad, but hopefully the workaround still works. Thanks for letting me know!
English

If you, like me, have struggled with using images, colors and fonts from a package in SwiftUI previews, I can recommend reading this great post: dev.jeremygale.com/swiftui-how-to…
English

@danielsaidi @mecid Looks like no such luck - still can't preview across modules boundaries in Xcode 14 Beta 1.
English

@jgale_ios @mecid I would be very surprised if they didn’t. I understand that tech developed in parallel fail to connect, but the problem (and solution) is so obvious in this case. Too bad that we often have to wait for a year for these major issues to resolve.
English

Navigator pattern in action using the new Navigation API in SwiftUI.
swiftwithmajid.com/2022/06/07/wha…

English
Jeremy Gale retweetledi
Jeremy Gale retweetledi
Jeremy Gale retweetledi




