@wvabrinskas In Xcode’s Settings, go to Intelligence, then “Add a Model Provider”, then enter https://t.co/OQAuHlf0Ep and enter your API key. There is a bug where you might have to restart Xcode if the list of models doesn’t show up right away.
The SwiftUI tools team is hiring! We are looking for engineers passionate about the intersection of UI design, UI frameworks, and applying techniques like ML to guide building great user experiences. If this sounds interesting, please apply! https://t.co/QrblG5s1yY
@bradleybernard This happens if your view, e.g. `SettingsView` has an implicit stack. i.e. the `body` had three views without an enclosing container like VStack, Group, etc. Workaround: wrap your preview in a Group in `previews`
This is fixed with the new Preview macro API in Xcode 15.
This might be worth posting again: The SwiftUI Previews team is hiring! We love sitting at the intersection of tools, languages, frameworks, & the OS.
If you love thinking about how we all write software and love to learn, please apply or DM! https://t.co/pdUzDxjb7l
The SwiftUI Previews team is hiring! We get to provide the preview experience for Xcode and Swift Playgrounds. We love sitting at the intersection of tools, languages, frameworks, and the system.
If this sounds interesting, please apply or DM! https://t.co/pdUzDxBklt
@MuseumShuffle Thanks for posting and sending in the feedback. Can you try closing the "Remote.swift" file and just having the single widget file open?
@sayhellobryan Another abstraction that works well is to put all of your UI code in a leaf module. This forces you to minimize what you can pass into and be intentional about design. And then it means you can refactor your app without having to immediately update your previews.
@kyleve@NachoSoto Ouch, yeah, there are definitely known issues related to nested types, especially combined with generics. Sometimes this can be worked around (yes, I know it's just a workaround) with well placed `typealias`'s that help the inner types know how to find sibling nested types