Skip to content

Commit

Permalink
Update AnimatedMulticolorGradientView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakr233 committed Feb 12, 2025
1 parent de30b4e commit 7ee7e32
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/ColorfulX/AnimatedMulticolorGradientView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ open class AnimatedMulticolorGradientView: MulticolorGradientView {

// MARK: - RENDER LIFE CYCLE

#if canImport(UIKit)
override open func didMoveToWindow() {
super.didMoveToWindow()
layoutIfNeeded()
updateRenderParameters(deltaTime: deltaTimeForRenderParametersUpdate())
renderIfNeeded()
}
#endif

#if !canImport(UIKit) && canImport(AppKit)
override open func viewDidMoveToWindow() {
super.viewDidMoveToWindow()
Expand Down

0 comments on commit 7ee7e32

Please sign in to comment.