Swift library of Hiroki Sayama's artificial chemistry model SwarmChemistry. This project includes followings:
- SwarmChemistry library
- Demo app implementation for iOS
- Demo app implementation for macOS
- Screensaver for Mac
iOS10+
macOS10.12+
Use Carthage:
github "mitsuyoshi-yamazaki/SwarmChemistry"
To use the library, see: implementation
$ git clone [email protected]:mitsuyoshi-yamazaki/SwarmChemistry.git
Open SwarmChemistry.xcworkspace
on Xcode8.3
Choose a scheme Demo_iOS or Demo_Mac and run.
- You can choose initial swarm condition:
- Predefined recipes
- Random
- Manual input
- You can share the current recipe and the screenshot
- You can not choose recipe on the app for now, so edit recipe by changing
Population
parameter in the source code
Download screensavers from Releases, unzip them and double-click to install.
This project includes following targets:
Target name | Description |
---|---|
SwarmChemistry_iOS | SwarmChemistry CocoaTouch Framework |
SwarmChemistry_Mac | SwarmChemistry Cocoa Framework |
SwarmChemistryTest_iOS | Tests for SwarmChemistry |
SwarmChemistryTest_Mac | Tests for SwarmChemistry |
Demo_iOS | App implementation for iOS |
Demo_Mac | App implementation for Mac |
Demo_Screensaver | Screensaver for Mac |
AtHome | ArtificialLife@home (Screensaver for Mac) |
See Releases
Because Build Configuration is set to Release
to make it runs faster. Change it to Debug
to enable debugging.