@Dimillian@piercifani Have you tried excluding images (or other large objects) from the equatable conformance of a View? In one case this improved performance massively for me
@luciascarlet @mach_skippy_t Developer of this package here. I use it for my notarized mac apps distributed outside the app store, it works great for that! I can imagine it does not work for apps in the App Store
@Stammy Likely caused by contentTransitionAddsDrawingGroup (https://t.co/zNbCxzyfUi), I have the same issue in my app. If not applied the animation will leak memory, so I don’t know if there’s really a solution. contentTransition is quite buggy on macOS
@emergetools@Apple@espn JetEngine is also used in Apple Music and Podcasts on macOS! There's also JetUI and _JetEngine_SwiftUI, which makes me believe it's some way to generate native UI from remote content
@JordanMorgan10 I was also confused by this decision! Another way to solve this is by writing a custom property wrapper (I made a forum post about it here: https://t.co/7XQsNLh37o)
Functionally, this should be equivalent to putting Bindable in the view body
@hieudinh_@Dimillian@SidneySadel I have this problem too (on macOS). You’re able to fix it by setting the environment key contentTransitionAddsDrawingGroup to true, but doing that adds some artifacts.
Today, we're making the first of many Arc on Windows projects public: our Swift build infrastructure & roadmap!
At @browsercompany, we're committed to sharing our work to make Swift on Windows a fantastic platform for high-craft native app development
➡️ https://t.co/2bFqVRXzEg
New version (v2.2) out! This update packs a bunch of new features, such as:
⁃A new Now Playing HUD style, which expands from the macbook notch
⁃Enhanced support for Lunar
⁃Hide Track title extras
It also has a bunch of bugfixes and smaller tweaks
Check it out!
@stephancasas@leogdion Is there a reason you’re using AnyView instead of an associated type? AnyView will probably hurt performance in this case as it’s used in a root view
I have seen some posts trying to solve the strange way of using @ Bindable and @ Environment together. Decided to take my own stab at it, and I quite like the result!
Here's a new property wrapper EnvironmentObservable, which works the same as EnvironmentObject
#SwiftUI#Swift
@rudrank I’m also playing with the idea but unfortunately playing back music is not reliable, as it crashes a lot. Really hoping they fix this before the final release
@azamsharp You’re able to create a custom propertywrapper which works similar to the EnvironmentObject property wrapper. I’m not sure if this could cause performance issues though, as it’ll create a new Bindable for each call to projectedValue. Let’s hope Apple fixes this in the next betas.
@twannl I have tried them out for the past couple of days and they are awesome! I was able to create a macro which removes lots of the boilerplate code for creating custom SwiftUI Environment keys: https://t.co/JbOTrXoooA
Swift Macro’s can do some really nice stuff! I just released a package which reduces some of the boilerplate code in #SwiftUI
When used at the right places, it can improve the developer experience a lot
Check it out: https://t.co/JbOTrXoooA
#Swift#Macro
I just released a new update for my Swift package, which adds:
- Opening a SwiftUI Window from anywhere in the app
- Opening the Settings Window, which also works on macOS Sonoma
Check it out: https://t.co/9Mj2GgMlLc
#SwiftUI