Swiftpack.co - rive-app/rive-ios as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by rive-app.
rive-app/rive-ios pre-high-level
iOS runtime for Rive
⭐️ 450
🕓 2 years ago
iOS macOS
.package(url: "https://github.com/rive-app/rive-ios.git", from: "pre-high-level")

Build Status Discord badge Twitter handle

Rive iOS

Rive hero image

An iOS/macOS runtime library for Rive that supports both UIKit, AppKit, and SwiftUI.

The library is distributed both through Swift Package Manager and Cocoapods.

Table of contents

Rive overview

Rive is a real-time interactive design and animation tool that helps teams create and run interactive animations anywhere. Designers and developers use our collaborative editor to create motion graphics that respond to different states and user inputs. Our lightweight open-source runtime libraries allow them to load their animations into apps, games, and websites.

:house_with_garden: Homepage

:blue_book: General help docs

🛠 Learning Rive

Getting started

Follow along with the link below for a quick start in getting Rive iOS/macOS integrated into your multi-platform applications.

Getting Started with Rive in iOS

Supported devices

Currently, this runtime library supports a minimum iOS version of 14.0+. Devices supported include iPhone, iPad, and Mac catalyst. macOS support supports a targeted version of 13.1.

Examples

Check out the Example-iOS/ folder for an example application using the Rive iOS/macOS runtime.

Open the project in XCode and ensure the selected scheme/target is set to Preview/Preview (macOS). These schemes make use of the hosted Rive package dependency. The other targets are for local development and require additional configuration and set-up. See Customizing the build schemes for a project for instructions to switch schemes, and CONTRIBUTING.md for more information.

The example showcases a number of ways to use the high-level RiveViewModel API through UIKit and SwiftUI examples, including:

  • Setting a Rive file via a URL or asset in the bundle
  • Setting layout and loop mode options
  • Displaying single or multiple animations / artboards on one component
  • Setting up and maniuplating a state machine via inputs
  • ...and more!

Awesome Rive

For even more examples and resources on using Rive at runtime or in other tools, checkout the awesome-rive repo.

Migration guides

Using an older version of the runtime and need to learn how to upgrade to the latest version? Check out the migration guides below in our help center that help guide you through version bumps; breaking changes and all!

Migration guides

Contributing

We love contributions! Check out our contributing docs to get more details into how to run this project, the examples, and more all locally.

Issues

Have an issue with using the runtime, or want to suggest a feature/API to help make your development life better? Log an issue in our issues tab! You can also browse older issues and discussion threads there to see solutions that may have worked for common problems.

GitHub

link
Stars: 450
Last commit: 3 hours ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

5.10.0
3 weeks ago
  • Remove the Queue from Metal PLS 3da243c
  • chore: update README ab21a25
  • Updating version files b8d9341
  • Fix ios and android workflows with pls 62ab488
  • More LTO tweaks e787fb3
  • Add a @rive-app/webgl2 package that uses PLS ce1bf6f
  • support for interrupting transitions on state change f633c6e
  • Unity webgl! d32624a
  • Always decode 3 or 4 channel PNG images. 292edfd
  • Upgrade rive_wasm to the new premake system 48f4bc4
  • slim down harfbuzz d35e7f3
  • Implement an MSAA fallback for PLS 4e8324d
  • Update push_ios dependencies to include pls 5b17538
  • Quit using baseInstance on Metal 23fd20b
  • Add a flag to bypass Emscripten's shader parser 815eec0
  • Fixup rive-renderer build and README d48880c
  • Fix PLS on android ae75533
  • rename to rive-renderer and add readme 13f0d2e
  • Push Unity Downstream when PLS changes 234a405
  • Specify explicit MSL versions when compiling PLS shaders e7a10df
  • Make simple RAII wrappers around GL objects 36250ad
  • Fix WebGL extension wrangling 2d495da
  • Add MSAA support for non-MSAA FramebufferRenderTargetGLs 72a2169
  • WebGL glue cleanups 79cec38
  • Add fallback support for MSAA blend modes 32a870c
  • Revive web support for PLS 5fbefa7
  • Implement clipping with stencil in MSAA mode ee940e6
  • Clean up GL offscreen atomic rendering 77d55ef
  • Implement MSAA clipRects with clip planes d107f4f

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics