Profile Photo
Hi guys, Yesterday during a work meeting a coworker said to use a struct as a view model instead of a class that derives from observable object so that you can avoid using all the property wrappers. While this approach technically works I don't feel it's the proper way to do things for a few reasons: 1. It seems "anit-pattern". Not on part of… (Show more)
in SwiftUI
Profile Photo
Hi guys, I have a problem I'm trying to solve and I can't figure out a way to do it. I have a variable in the view model that is being watched and will flash the background of a textfield red if an invalid character is entered. (This is a business requirement for a SwiftUI proof of concept at work so I cannot change this behavior.).… (Show more)
in SwiftUI
Profile Photo
I'm using XCode 8.2.1 on a MacBook Pro using the most recent macOS.   I just finished rewriting one of my early iOS apps in Swift to get it back on the store. It would be useful to some if it were available to run on laptops, so I thought it might be not too difficult to port it over to macOS.   Right now, for some reason the zoom controls are… (Show more)
in Interface Builder