An animated trophy banner that looks like Xbox achievement.
https://user-images.githubusercontent.com/6781789/123460143-0b87dd80-d59c-11eb-97f9-4951e914a106.mov
TrophyKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TrophyKit'
To run the example project, clone the repo, and run pod install from the Example directory first.
/// Create a trophy instance with a configuration. It is efficient to retain a trophy instance
/// and call `show` with different parameters.
let trophy = Trophy(configuration: TrophyConfiguration(size: .medium))
/// Show the trophy in view controller.
trophy.show(from: self,
title: "Achievement Unlocked",
subtitle: "You have added a new skill!",
iconSymbol: "gamecontroller.fill",
trophyIconSymbol: "rosette")
TrophyKit is available under the MIT license. See the LICENSE file for more info.
link |
Stars: 13 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics