mirror of
https://github.com/exyte/Macaw.git
synced 2024-08-16 08:30:33 +03:00
fix unsmooth group animation
This commit is contained in:
parent
f9c0972648
commit
7b54ddaf36
@ -24,7 +24,7 @@ class MDisplayLink: MDisplayLinkProtocol {
|
|||||||
|
|
||||||
displayLink = CADisplayLink(target: self, selector: #selector(updateHandler))
|
displayLink = CADisplayLink(target: self, selector: #selector(updateHandler))
|
||||||
if #available(iOS 10.0, *) {
|
if #available(iOS 10.0, *) {
|
||||||
displayLink?.preferredFramesPerSecond = 1
|
displayLink?.preferredFramesPerSecond = 60
|
||||||
} else {
|
} else {
|
||||||
displayLink?.frameInterval = 1
|
displayLink?.frameInterval = 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user