2021-01-01から1年間の記事一覧
拡大・縮小 UIView.transition(with: self.squareView, duration: 1.0, options: [.transitionFlipFromLeft, .repeat, .autoreverse], animations: { self.squareView.transform = CGAffineTransform(scaleX: 2, y: 2); // これを(scaleX: 1/2, y: 1/2)にす…
UIView.animateによるアニメーション duration は何秒でアニメーションさせるか delay で開始まで何秒遅延するか指定 options でアニメーションの動き方を指定 (後述) animations で動かしたいUIViewのプロパティを変化 completion は完了した後に呼ばれるク…