Run a SwiftUI app (or any SwiftUI view) in an iPhone Simulator “wrapper”, directly on macOS!
To be clear, this is not an iPhone Simulator (nor any sort of emulation thereof). Rather, for those of
us who took care to write our iOS apps without leaning on any platform-specific libraries (e.g. UIKit),
you can think of this as your reward: a way to build that app for macOS and run it at light speed
(compared to an actual iPhone Simulator, that is) directly on any Mac, no Xcode or dev tools required.
Compatibility
SwiftUIPhone is compatible with applications targeting macOS 11+.
Installation
Swift Package Manager
SwiftUIPhone is available as a Swift Package. To use it in your project, add it to your project’s Swift Packages:
SwiftUIPhone
Run a SwiftUI app (or any SwiftUI view) in an iPhone Simulator “wrapper”, directly on macOS!
To be clear, this is not an iPhone Simulator (nor any sort of emulation thereof). Rather, for those of us who took care to write our iOS apps without leaning on any platform-specific libraries (e.g. UIKit), you can think of this as your reward: a way to build that app for macOS and run it at light speed (compared to an actual iPhone Simulator, that is) directly on any Mac, no Xcode or dev tools required.
Compatibility
SwiftUIPhone is compatible with applications targeting macOS 11+.
Installation
Swift Package Manager
SwiftUIPhone
is available as a Swift Package. To use it in your project, add it to your project’s Swift Packages:Usage
SwiftUIPhone
can be used as follows:Author
Justin Kaufman
Email | jmkauf@gmail.com
Twitter | @JUSTINMKAUFMAN
License
SwiftUIPhone is available under the MIT license. See the LICENSE file for more info.