All Projects → 2d-inc → Flare Swift

2d-inc / Flare Swift

Licence: mit
Swift runtime for Flare.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Flare Swift

Activej
ActiveJ is an alternative Java platform built from the ground up. ActiveJ redefines web, high load, and cloud programming in Java, featuring ultimate performance and scalability!
Stars: ✭ 183 (-5.18%)
Mutual labels:  framework
Autoserver
Create a full-featured REST/GraphQL API from a configuration file
Stars: ✭ 188 (-2.59%)
Mutual labels:  framework
Apworks Core
Apworks framework supporting .NET Core
Stars: ✭ 190 (-1.55%)
Mutual labels:  framework
Ego
Ego is a full-stack web framework written in Go, lightweight and efficient front-end component solutions, based on gin. The front-end is compiled, does not affect the back-end.
Stars: ✭ 185 (-4.15%)
Mutual labels:  framework
Rocket
A web framework for Rust.
Stars: ✭ 15,760 (+8065.8%)
Mutual labels:  framework
Elefant
Elefant, the refreshingly simple PHP CMS and web framework.
Stars: ✭ 188 (-2.59%)
Mutual labels:  framework
Wq
📱🌐📋 wq: a modular framework supporting web / native geographic data collection apps for mobile surveys and citizen science. Powered by Django REST Framework, Redux, React, and Material UI.
Stars: ✭ 182 (-5.7%)
Mutual labels:  framework
Amber
A Crystal web framework that makes building applications fast, simple, and enjoyable. Get started with quick prototyping, less bugs, and blazing fast performance.
Stars: ✭ 2,345 (+1115.03%)
Mutual labels:  framework
Aioquant
Asynchronous event I/O driven quantitative trading framework.
Stars: ✭ 188 (-2.59%)
Mutual labels:  framework
Go Chassis
a microservice framework for rapid development of micro services in Go with rich eco-system
Stars: ✭ 2,428 (+1158.03%)
Mutual labels:  framework
Ppphp
php framework
Stars: ✭ 186 (-3.63%)
Mutual labels:  framework
Catch2
A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
Stars: ✭ 14,330 (+7324.87%)
Mutual labels:  framework
Glimmer
DSL Framework consisting of a DSL Engine and a Data-Binding Library used in Glimmer DSL for SWT (JRuby Desktop Development GUI Framework), Glimmer DSL for Opal (Pure Ruby Web GUI), Glimmer DSL for XML (& HTML), Glimmer DSL for CSS, and Glimmer DSL for Tk (MRI Ruby Desktop Development GUI Library)
Stars: ✭ 186 (-3.63%)
Mutual labels:  framework
Reactant
A framework for building React applications
Stars: ✭ 185 (-4.15%)
Mutual labels:  framework
Lore
Respectfully opinionated convention-driven framework for building React applications. Built on React, Webpack, Redux, and React Router.
Stars: ✭ 190 (-1.55%)
Mutual labels:  framework
Web Bee
🐝 Web vertical crawler framework for fun
Stars: ✭ 184 (-4.66%)
Mutual labels:  framework
Youi
Next generation user interface and application development in Scala and Scala.js for web, mobile, and desktop.
Stars: ✭ 186 (-3.63%)
Mutual labels:  framework
Quokka
LOOKING FOR NEW MAINTAINER - Quokka is a Content Management System - `docker run --rm -it -p 5000:5000 quokka/quokka`
Stars: ✭ 2,198 (+1038.86%)
Mutual labels:  framework
Singool
Backbone.js based framework for developing single-page web applications
Stars: ✭ 190 (-1.55%)
Mutual labels:  framework
Ouf
WoW AddOn - Unit frame framework.
Stars: ✭ 189 (-2.07%)
Mutual labels:  framework

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.

Flare-Swift

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.

Problems

If you encounter any problems report them in the issue tracker and, if applicable, include your Flare file.

Contents

The repository contains an XCode Project structured as follows:

  • FlareSwift - Swift Framework for loading and drawing Flare files
    • FlareCore is the bottommost layer of the Framework: this is where Flare file contents are read, loaded and built in-memory
    • FlareSkia handles the drawing operations in an OpenGL context. It relies on libskia, which is built with a custom script (see Usage)

This project contains multiple targets:

  • FlareSwift - builds the Framework that runs on physical devices.
  • FlareSwiftDev - builds the Framework that runs on Simulators.
  • Example - A simple example demonstrating how to add a FlareSkViewController in a Single View App ViewController. It draws inside the FlareSkView associated with the FlareSkViewController.
  • ExampleController - Demonstrates how to create a CustomController that is an extension of FlareSkViewController. This class takes advantage of the available APIs by overriding 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.

Using the Framework

  • Clone the repository:
git clone [email protected]:2d-inc/Flare-Swift.git
  • Open FlareSwift.xcodeproj
  • In the XCode window, select the scheme for the device you want to run on:
    • Use FlareSwift to build the Framework for a physical device
    • Use 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.

  • Build the Framework (⌘ + B)

The Framework can be found in the Products folder.
Access the Products folder from XCode by right clicking on it > Show in Finder.

In Your Project:

  • Drag-and-drop the .framework file into the XCode window.
    • In the import dialog, select "Copy items if needed" and the target in "Add to Targets"
  • Add the Framework to the Build Phases:
    • Select the Project in the Project Navigator
    • Select your Target
    • Build Phases
    • Add the Framework to the Embed Frameworks phase.

Running the Examples

The examples are configured to be run on a Simulator.

If you want to run them on a physical device, follow these steps:

  • Select the example project in the Project Navigator
  • Select the project target from the target list
  • Under the Framework, Libraries and Embedded Content menu:
    • Select FlareSwiftDev.framework and press the minus (-) button to remove it
    • Use the plus (+) button to add FlareSwift.framework
  • Run the example N.B. if the Framework needs to run a clean build for the device, this process might take a while. Use the Report Navigator to look at what's happening.

License

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).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].