Skip to content

Commit 2e46d03

Browse files
committed
Update version to 0.6.
1 parent c7a02d4 commit 2e46d03

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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
1111
pod '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

2525
To 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.
8991
We have tried to and shadow into the customized shape layer directly with the following code.
9092

9193
```Swift

ShapeView.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Pod::Spec.new do |s|
99
s.name = 'ShapeView'
10-
s.version = '0.5.1'
10+
s.version = '0.6'
1111
s.summary = 'A customized shape view with shadow and transparent background supported.'
1212

1313
s.description = <<-DESC

0 commit comments

Comments
 (0)