/IOS-SWIFT-Animation-RIsk-Dice

I love to play Risk so I create this app for roll the dice

Primary LanguageSwift

IOS-SWIFT-Animation-RIsk-Dice

Swift, IOS

Animtion

  • CGAffineTransform
  • scale
  • rotationAngle
  • translationX
  • UIButtonExtension

Simulator Screen Shot

Risk Dice

This projet is personnal, i love to play Risk, and i wanted to learn animation in Swift.
Created a UIButton Extension with function for animation (shake, pulse, flash).
Created func for animate the dice (rotate, scale, translationX).
So when you press the attack or defense button the buttons and the dices will start to be animate.

Screenshot

Simulator Screen Shot


UIButtonExtension

Capture d’écran 2020-02-11 à 15 55 46