[swift] slide animation
2019. 11. 21. 13:18ㆍProgramming/Swift
반응형
case 1.
let transition = CATransition() transition.type = CATransitionType.push transition.subtype = CATransitionSubtype.fromLeft memoView.layer.add(transition, forKey: nil) memoView.addSubview(countChartView) memoView.addSubview(closeMemoButton) |
case 2.
UIView.transition(with: self.memoView, duration: 1.0, options: [.transitionFlipFromRight], animations: { memoView.addSubview(countChartView) // self.memoView.removeFromSuperview() }, completion: nil) |
반응형
'Programming > Swift' 카테고리의 다른 글
[Swift5] 문자열에 대한 라인수 구하기 (0) | 2020.01.29 |
---|---|
xcode git 연동 문제 (0) | 2020.01.16 |
[cocoaPods] 프로젝트 만들어 보기 (0) | 2019.10.22 |
[iOS13] 당황스럽게 변경된 점 (0) | 2019.10.22 |
[Swift] opacity (0) | 2019.03.22 |