📜  快速为标签 ishidden 设置动画 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:00:59.398000             🧑  作者: Mango

代码示例1
DispatchQueue.main.async {
  UIView.transition(with: myLabel, duration: 0.6, 
                    options: .transitionCrossDissolve, 
                    animations: {
                   myLabel.isHidden = false
                })
}