Skip to content

Commit

Permalink
Chore: Change the order of public method
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaehui-Seo committed May 2, 2023
1 parent cf17a23 commit b29c49a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Sources/CHGlassmorphismView/CHGlassmorphismView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ public class CHGlassmorphismView: UIView {
}

// MARK: - Public Method
/// Customizes blur density of the view.
/// - parameters:
/// - density: value between 0 ~ 1 (default: 0.65)
public func setBlurDensity(with density: CGFloat) {
self.animatorCompletionValue = (1 - density)
self.animator.fractionComplete = animatorCompletionValue
}

/// Customizes theme by changing base view's background color.
/// .light and .dark is available.
public func setTheme(theme: CHTheme) {
Expand Down Expand Up @@ -70,6 +62,14 @@ public class CHGlassmorphismView: UIView {
}
}

/// Customizes blur density of the view.
/// - parameters:
/// - density: value between 0 ~ 1 (default: 0.65)
public func setBlurDensity(with density: CGFloat) {
self.animatorCompletionValue = (1 - density)
self.animator.fractionComplete = animatorCompletionValue
}

/// Changes cornerRadius of the view.
public func setCornerRadius(_ value: CGFloat) {
self.backgroundView.layer.cornerRadius = value
Expand Down

0 comments on commit b29c49a

Please sign in to comment.