Skip to content

Commit

Permalink
Merge pull request #157 from iiMshl/patch-1
Browse files Browse the repository at this point in the history
Updated README
  • Loading branch information
vikmeup committed Apr 11, 2016
2 parents 21e4561 + a1555b9 commit e982fba
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,33 @@ alertView.showCloseButton = false
alertView.showSuccess("No button", subTitle: "You will have hard times trying to close me")
```

#### Hide default close button & a duration to close the alert

```swift
let alertView = SCLAlertView()
alertView.showCloseButton = false
alertView.showWarning("No button", subTitle: "Just wait for 3 seconds and I will disappear", duration: 3)
```


#### Hide alert icon

```swift
let alertView = SCLAlertView()
alertView.showCircularIcon = false
alertView.showSuccess("No icon", subTitle: "This is a clean alert without Icon!")
```

#### Use a custom icon

```swift
let alertView = SCLAlertView()
let alertViewIcon = UIImage(named: "IconImage") //Replace the IconImage text with the image name
alertView.showCircularIcon = true
alertView.showInfo("Custom icon", subTitle: "This is a nice alert with a custom icon you choose", circleIconImage: alertViewIcon)
```


#### Add Text fields

```swift
Expand Down

0 comments on commit e982fba

Please sign in to comment.