@@ -4,8 +4,8 @@ ShapeView support to create a view with the customized shape, shadow and transpa
44
55## Installation
66
7- ShapeView is available through [ CocoaPods] ( https://cocoapods.org ) . To install
8- it, simply add the following line to your Podfile:
7+ ShapeView is available through [ CocoaPods] ( https://cocoapods.org ) .
8+ To install it, simply add the following line to your Podfile:
99
1010``` ruby
1111pod ' ShapeView'
@@ -18,8 +18,8 @@ ShapeView supports the following attributes.
1818- ` path: ShapePath? `
1919- ` outerShadow: ShapeShadow `
2020- ` innerShadow: ShapeShadow `
21- - ` blurEffectStyle: UIBlurEffect.Style ?`
22- - ` blurAlpha : CGFloat`
21+ - ` effect: UIVisualEffect ?`
22+ - ` effectAlpha : CGFloat`
2323- ` backgroundColor: UIColor? `
2424
2525To create a customized shape, use ``` .custom ``` to draw the shape as the following.
@@ -68,11 +68,13 @@ Run the demp application to find more.
6868
6969#### Using ShapeLayer
7070
71- We provide ` ShapeLayer ` for developers to apply it to your view directly.
71+ We provide ` ShapeLayer ` for developers to apply it to your customized view directly.
7272
7373- ` layerPath: ShapePath? `
7474- ` var outerShadow: ShapeShadow? `
7575- ` var innerShadow: ShapeShadow? `
76+ - ` effect: UIVisualEffect? `
77+ - ` effectAlpha: CGFloat `
7678- ` var didUpdateLayer: ((CAShapeLayer) -> Void)? `
7779- ` var backgroundColor: CGColor? `
7880
@@ -85,7 +87,7 @@ Developers can update the parent view with the first parameter in this closure.
8587
8688### Necessity to implement by ourselves
8789
88- It is hard to create a customized shape with shadow and transparent background for UIView.
90+ It is hard to create a customized shape with shadow and transparent background for UIView using the SDK provided by Apple .
8991We have tried to and shadow into the customized shape layer directly with the following code.
9092
9193``` Swift
0 commit comments