Skip to content

jordangustafson/SharedViewModels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharedViewModels

This small sample project explores sharing view model implementations between UIKit and SwiftUI. I wanted see what it would take to use the same view model class with a SwiftUI and UIKit view. In the iOS target of the app, the ExampleView is powered by UIKit, in the macOS target, it's powered by SwiftUI. This view model structure could be useful for when you need to use different frameworks on different platforms. It also keeps things simple, whether you're building a SwiftUI or UIKit view, the view model layer can stay the same.

About

Explores sharing view models between UIKit and SwiftUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages