File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public class VariableBlurView: UIVisualEffectView {
3838 case right // Right. iPadOS sidebar in right-to-left locales
3939 }
4040
41- /// An absolute or relative amount of sizing used to customize the appearence of the blur and gradient views.
41+ /// An absolute or relative amount of sizing used to customize the appearance of the blur and gradient views.
4242 public enum GradientSizing {
4343 // The amount of on-screen UI points starting from the origin, as a static value.
4444 case absolute( position: CGFloat )
@@ -117,11 +117,16 @@ public class VariableBlurView: UIVisualEffectView {
117117 commonInit ( )
118118 }
119119
120- public init ( frame : CGRect ) {
121- super. init ( effect: UIBlurEffect ( style : . regular ) )
120+ public override init ( effect : UIVisualEffect ? ) {
121+ super. init ( effect: effect )
122122 commonInit ( )
123123 }
124124
125+ public convenience init ( frame: CGRect ) {
126+ self . init ( effect: UIBlurEffect ( style: . regular) )
127+ self . frame = frame
128+ }
129+
125130 required init ? ( coder: NSCoder ) {
126131 super. init ( effect: UIBlurEffect ( style: . regular) )
127132 commonInit ( )
You can’t perform that action at this time.
0 commit comments