93424f74c0
- AutoLayout is now behind a feature flag (that is defaulted) to enable building and running on platforms that do _not_ support AutoLayout. - Added a frame-based Layout example for platforms that don't have AutoLayout support. - Fixed a bug in geometry.rs where x/y coordinates would get swapped on conversion to `CGRect`. - Added a README to the examples directory to aid in first time users running examples.
15 lines
835 B
Markdown
15 lines
835 B
Markdown
# Cacao iOS Support
|
|
This, unlike the macOS side of things, is much more alpha-quality. It does work, though - and this example will likely end up being a "kitchen sink" to figure things out with.
|
|
|
|
## To run
|
|
Since this needs to run in an iOS simulator or on a device, you can't run it like a typical example. Follow the instructions below to give it a go:
|
|
|
|
- Start a simulator (Simulator.app).
|
|
- `cargo install cargo-bundle`
|
|
- `cargo bundle --example ios-beta --no-default-features --features uikit,autolayout --target x86_64-apple-ios`
|
|
- `xcrun simctl install booted target/x86_64-apple-ios/debug/examples/bundle/ios/cacao-ios-beta.app`
|
|
- `xcrun simctl launch --console booted com.cacao.ios-test`
|
|
|
|
## Current Support
|
|
Not much, but the basics of the scene delegate system work, along with view support, colors, and layout. Play around!
|