Allows you to easily implement a 3D Dice rolling view into your UI with simple APIs.
#Usage
You may
- Add Dice
diceView.addDice()
- Delete Dice
diceView.deleteDice()
- Roll Dice
diceView.roll()
- Get Total
diceView.total
And be notified when
- Did start & end of rolling
- Did reach max & go under dice capacity
#Customization
You may customize these properties
- Dice Size
- Roll on shake
- Roll in response to Device Motion
- Sound
- Background Image
#Installation
-
Download or Clone the project
-
Drag the JW3DDiceView.swift file into your project
-
Add the images in folder "RequiredImages" into your image assets
-
Add the "ShakeAndRollDice.mp3" file into your project if you'd like to enable sound.
#App Store
Used in App Dice Field 3D in the App Store. Repository