Swiftpack.co - plamenterziev/MetalEffects as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by plamenterziev.
plamenterziev/MetalEffects 1.2.0
Out of the box effects for your iOS app or game
⭐️ 4
🕓 1 year ago
iOS
.package(url: "https://github.com/plamenterziev/MetalEffects.git", from: "1.2.0")

MetalEffects

This framework provides out of the box effects for your iOS app or game. The framework uses Metal API so it only runs on iOS devices with Metal support (all devices equipped with A7 processors or higher)

NOTE: Metal is not supported in the Simulator so you need real device.

Features

  • ☑ Confetti effect

Requirements

  • iOS 9.0 or later
  • Xcode 9.4 or later
  • iOS device with Metal support, i.e. with A7 processor or higher

How to use

import MetalEffects

// EffectsManager is the main class to work with
let effectsManager = EffectsManager()

// The effect is rendered in a custom UIView so you need to add this view to your view hierarchy
addSubview(effectsManager.view!)

// Show the effect (currently only Confetti is supported)
effectsManager.show(effectType: .confetti(configuration: .default)) { result in
   // TODO: Handle completion of the effect
}

Instalation

MetalEffects usese Swift Package Manager.

https://github.com/plamenterziev/MetalEffects

Author

Showcase

This framework is used in Solitaire The Game distributed by Mobishape which is featured in the article World of Solitaire of TopGamesCenter

TODO

  • Add more effects

GitHub

link
Stars: 4
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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