Latest 2.0.2
Homepage https://github.com/javierquerol/JAQDiceView
License MIT
Platforms ios 8.0, requires ARC
Frameworks SceneKit
Authors

Click play to watch the video

Video

Version
License
Platform
GitHub Issues

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Don’t use the simulator, always use a device, as it uses a lot of GPU, performance is really bad on simulator

  • Add a JAQDiceView to your ViewController
  • Implement the JAQDiceProtocol
@interface JAQViewController () <JAQDiceProtocol>
@property (nonatomic, weak) IBOutlet JAQDiceView *playground;
@end

@implementation JAQViewController

- (void)diceView:(JAQDiceView *)view rolledWithFirstValue:(NSInteger)firstValue secondValue:(NSInteger)secondValue {
    NSLog(@"%li",firstValue+secondValue);
}

- (IBAction)rollDice:(id)sender {
    [self.playground rollTheDice:sender];
}

@end

Requirements

iOS 8 (SceneKit works on >=iOS8)

Installation

JAQDiceView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "JAQDiceView"

Contribution

Feel free to contribute

Author

Javier Querol

Twitter
Email

License

JAQDiceView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "JAQDiceView",
    "version": "2.0.2",
    "summary": "A roll-the-dice view with SceneKit",
    "description": "                       A roll-the-dice view ready to use, made with SceneKit. >=iOS8n",
    "homepage": "https://github.com/javierquerol/JAQDiceView",
    "screenshots": "http://s15.postimg.org/4yh8hzbyz/dice.jpg",
    "license": "MIT",
    "authors": {
        "Javier Querol": "[email protected]"
    },
    "source": {
        "git": "https://github.com/javierquerol/JAQDiceView.git",
        "tag": "2.0.2"
    },
    "social_media_url": "https://twitter.com/javierquerol",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "resource_bundles": {
        "JAQDiceView": [
            "Pod/Assets/woodTile.png",
            "Pod/Assets/Dices.dae"
        ]
    },
    "frameworks": "SceneKit"
}

Pin It on Pinterest

Share This