Skip to content

Commit e8df146

Browse files
committed
update readme
1 parent f1a1a9f commit e8df146

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

.DS_Store

0 Bytes
Binary file not shown.

README.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
11
# AfriwanLib
2-
Create animation, round corner of view or button, and much more easily with AfriwanLib a library for your iOS app.
2+
Create animation, round corner of view or button, check internet connection and much more easily with AfriwanLib a library for your iOS app.
33

4-
[<img src="https://github.com/AfriwanAhda/AfriwanLib/blob/master/demo/animation.gif" width="231" height="500" alt="Afriwan Ahda"/>](https://diponten.com)
5-
6-
[<img src="https://github.com/AfriwanAhda/AfriwanLib/blob/master/demo/connection.gif" width="231" height="500" alt="Afriwan Ahda"/>](https://diponten.com)
4+
[<img src="https://github.com/AfriwanAhda/AfriwanLib/blob/master/demo/animation.gif" width="281.1" height="500" alt="Afriwan Ahda"/>](https://diponten.com)
5+
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
6+
[<img src="https://github.com/AfriwanAhda/AfriwanLib/blob/master/demo/connection.gif" width="281.1" height="500" alt="Afriwan Ahda"/>](https://apps.apple.com/id/developer/afriwan-ahda/id1330133888)
77

88

99
# How to use
10+
1011
First step, add AfriwanLib on your Podfile
1112
```groovy
1213
pod 'AfriwanLib'
1314
```
1415

1516

16-
Import this library in your class
17+
Open your Terminal and run Pod Install. Don’t forget to import AfriwanLib in your Class:
1718
```groovy
1819
import AfriwanLib
1920
```
2021

2122

22-
Now you can create round corner of your view or button easily with 1 line of code:
23+
## Create Animation & Round Corner
24+
Now you can create round corner of your view or button easily with single lline of code:
2325
```groovy
24-
// Simple round corner
2526
roundCorner(view: button_blue, cornerRadius: 15)
27+
```
2628

29+
30+
Or create custom round corner only with adding parameter you needed:
31+
```groovy
2732
// Custom round corner with full parameter
2833
roundCorner(view: view_green, cornerRadius: 30, shadowOpacity: 0.4, shadowRadius: 2.5, shadowOffset: CGSize.init(width: 1, height: 1), masksToBounds: false)
2934
@@ -34,16 +39,29 @@ roundCorner(view: view_orange, cornerRadius: view_orange.frame.height/2, shadowO
3439

3540
Create animation for UIView, UIButton, UITextField, etc as simple as this:
3641
```groovy
37-
// Simple animation
3842
pulsate(view: yourVieworButton)
43+
```
3944

45+
Or create custom animation only with adding parameter you needed:
46+
```groovy
4047
// Custom animation with some parameter
4148
shake(view: view_green, duration: 0.2, autoreverses: true, repeatCount: 3)
4249
4350
// Custom animation with full parameter
4451
flash(view: view_orange, duration: 0.5, autoreverses: true, repeatCount: 5, fromValue: 1, toValue: 0.2, timingFunction: CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut))
4552
```
4653

54+
## Check Internet Connection
55+
56+
Very easy to check internet connection
57+
```groovy
58+
if isConnectedToInternet() {
59+
resultText = "Connected"
60+
} else {
61+
resultText = "Not Connected"
62+
}
63+
```
64+
4765

4866
Project example include in this Library, you can clone or download from this repository. Happy Coding!!
4967

0 commit comments

Comments
 (0)