Post

Replies

Boosts

Views

Activity

Comment on Stop using MVVM for SwiftUI
@malc "View struct hierarchy with its dependency tracking and diffing is the view model already" what if I work on an iPhone, iPad, and MacOS app? 3 different UIs and the same business logic? With MVVM I'd have 3 different Views that share the same VM. How would I achieve that with MV(or whatever it is) approach? Also how do you unit test your logic if it's inside a View?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Comment on Where is swift assist?
They'll either release nothing, or it'll be dog crap like their predictive code completion that most of the people I know uninstalled...
Replies
Boosts
Views
Activity
Feb ’25
Comment on Swift Assist
Xcode 16.3 and still no Swift Assist. WWDC25 is around the corner....
Replies
Boosts
Views
Activity
Feb ’25
Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
not happening if you build the project in xcode 15.4. I currently have xcode cloud setup to build in 15.4 until they fix this bug(hopefully in xcode 16.1)...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
I'm building in xcode 15.4 until they fix this.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
Clearly it's not fixed. How is this the accepted answer?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
Did you submit feedback?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
I have no issues when I build in Xcode 15.4, as soon as I build in Xcode16 I face the same issue.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Comment on How to declare Privacy manifest
that might be swiftdata/coredata if you're using those. It can be anything basically...
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’24
Comment on Stop using MVVM for SwiftUI
@malc "View struct hierarchy with its dependency tracking and diffing is the view model already" what if I work on an iPhone, iPad, and MacOS app? 3 different UIs and the same business logic? With MVVM I'd have 3 different Views that share the same VM. How would I achieve that with MV(or whatever it is) approach? Also how do you unit test your logic if it's inside a View?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on ObservableObject as a singleton vs EnvironmentObject
Except you cannot access environment objects inside your view model, store, or however you wanna call it...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Comment on SwiftUI crash: Simultaneous accesses to X, but modification requires exclusive access.
I have a single Hashable enum & a single .navigationDestination for routes and it's still crashing.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Comment on Stop using MVVM for SwiftUI
Isn't your StoreModel still a ViewModel just named differently though?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on How do I remove text from navigation back button?
this doesn't work. tested on ios16+
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23