cacao/examples/ios-beta
simlay e4785bb50f
iOS support for label, text input, font, more tests (#55)
* Added a bunch of unit tests and added text input to uikit feature

* cargo fmt

* I dunno what this is but it wasnt checked in

* Fix uikit unit tests

* maybe fix cargo fmt

* Fix iOS run

* fix cargo fmt

* Maybe fix cargo fmt

* maybe fix cargo fmt

* cargo fmt

* Try to fix cargo fmt one more time

* cargo fmt
2023-07-10 00:42:46 -07:00
..
main.rs iOS support for label, text input, font, more tests (#55) 2023-07-10 00:42:46 -07:00
readme.md Update README instructions for iOS beta to use correct name 2022-08-21 19:21:26 -04:00

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/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!