Skip to content

Commit

Permalink
Disable Preset With Transition
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakr233 committed Aug 16, 2024
1 parent c6840c4 commit d5cb915
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions Sources/ColorfulX/MetalLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class MetalLink: DisplayLinkDelegate {
"content": NSNull(),
]
metalLayer.delegate = disableLayerAnimationDelegate
metalLayer.presentsWithTransaction = false
self.metalLayer = metalLayer

displayLink.delegatingObject(self)
Expand Down
1 change: 0 additions & 1 deletion Sources/ColorfulX/MetalView+UIKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

isUserInteractionEnabled = false
layer.addSublayer(metalLink.metalLayer)
assert(metalLink.metalLayer.delegate == nil)
metalLink.onSynchronizationUpdate = { [weak self] in
self?.vsyncCheckQualificationAndSend()
}
Expand Down

0 comments on commit d5cb915

Please sign in to comment.