Skip to content

plamenterziev/MetalEffects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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