Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Cocoa
- class MyConstraintLayoutManager: CAConstraintLayoutManager {
- var isImplicitAnimationsDisabled: Bool = true
- override func layoutSublayers(of layer: CALayer) {
- // サブレイヤーのレイアウト時の暗黙アニメーションを無効化
- CATransaction.begin()
- CATransaction.setDisableActions(self.isImplicitAnimationsDisabled)
- super.layoutSublayers(of: layer)
- CATransaction.commit()
- }
- }
Add Comment
Please, Sign In to add comment