Swift4とxcode9.2の環境です。
UITabbarの背景色をアニメーションさせたく下記のようなコードを書いてみました。
アニメーションが実行されないのですが、どうすればアニメーションできますか?
エラーとかは出てないです;_;
swift
1let seccolor = UIColor(red: 255/255, green: 255/255, blue: 255/255, alpha: 0) 2UITabBar.animate(withDuration: 10.0, delay: 10.0, options: .autoreverse, animations: { 3 UITabBar.barTintColor = seccolor 4}, completion: nil)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。