Swift runtime for Flare.
Flare is a powerful design and animation tool for app and game designers alike. The primary goal of Flare is to allow designers to work directly with assets that run in their final product, eliminating the need to redo that work in code.
Swift runtime for Flare: export files from Flare and run them on iOS!
Only Binary format is supported right now, but JSON support is in the works.
If you encounter any problems report them in the issue tracker and, if applicable, include your Flare file.
The repository contains an XCode Project structured as follows:
This project contains multiple targets:
FlareSwift
- builds the Framework that runs on physical devices.FlareSwiftDev
- builds the Framework that runs on Simulators.FlareSkViewController
.advanceControls()
, using a custom callback for swapping animations on completed (i.e. onCompleted()
), and adding a play()
function that plays a new animation allowing the user to specify the interpolation mix and time.git clone [email protected]:2d-inc/Flare-Swift.git
FlareSwift.xcodeproj
FlareSwift
to build the Framework for a physical device
FlareSwiftDev
to build the Framework for a Simulator
N.B: first time building the Framework takes a while, as it is initializing and building all the dependencies. Use the Report Navigator to have an overview of what's happening.
The Framework can be found in the Products
folder.
Access the Products
folder from XCode by right clicking on it > Show in Finder
.
.framework
file into the XCode window.
The examples are configured to be run on a Simulator.
If you want to run them on a physical device, follow these steps:
Framework, Libraries and Embedded Content
menu:
FlareSwiftDev.framework
and press the minus (-
) button to remove it+
) button to add FlareSwift.framework
See the LICENSE file for license rights and limitations (MIT).
The Bezier
folder is a port of bezier.dart, and is complying with their LICENSE.txt (BSD 2-Clause License).