Skip to content

Commit

Permalink
Export Render Scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakr233 committed Aug 20, 2024
1 parent 24f9ca3 commit 4425033
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Sources/ColorfulX/AnimatedMulticolorGradientView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ open class AnimatedMulticolorGradientView: MulticolorGradientView {
didSet { renderInputWasModified = true }
}

public var renderScale: Double {
get { metalLink?.scaleFactor ?? 1 }
set { metalLink?.scaleFactor = newValue }
}

// MARK: - FUNCTION

override public init() {
Expand Down
5 changes: 5 additions & 0 deletions Sources/ColorfulX/MulticolorGradientView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ open class MulticolorGradientView: MetalView {

public var renderExecutionStatus: RenderExecutionStatus = .normal

public var renderScale: Double {
get { metalLink?.scaleFactor ?? 1 }
set { metalLink?.scaleFactor = newValue }
}

override public init() {
super.init()

Expand Down

0 comments on commit 4425033

Please sign in to comment.