JW3DDiceView

Allows you to easily implement a 3D Dice rolling view into your UI with simple APIs.

Demo

iPad Demo

#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

  1. Download or Clone the project

  2. Drag the JW3DDiceView.swift file into your project

  3. Add the images in folder "RequiredImages" into your image assets

  4. 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