Skip to content

Commit

Permalink
Updated Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshrwtnb committed Apr 24, 2020
1 parent a6d6c12 commit 38aaf37
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ALRT.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = "ALRT"
s.version = "1.3.4"
s.version = "1.3.5"
s.summary = "An easier constructor for UIAlertController. Present from anywhere."
s.homepage = "https://github.com/mshrwtnb/ALRT"
s.screenshots = "https://raw.githubusercontent.com/wiki/mshrwtnb/ALRT/logobanner.png"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Masahiro Watanabe" => "iammshr@gmail.com" }
s.social_media_url = "http://qiita.com/mshrwtnb"
s.social_media_url = "https://mshrwtnb.com/"
s.platform = :ios, "9.0"
s.source = { :git => "https://github.com/mshrwtnb/ALRT.git", :tag => "#{s.version}" }
s.source_files = "ALRT/*.swift"
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ ALRT.create(.alert, title: "Alert?").addOK().addCancel().show()
* Returns `Result` whether an alert is successfully displayed. In other words, [Unit Testable](https://github.com/mshrwtnb/ALRT/blob/master/Demo/DemoTests/DemoTests.swift).

## Requirements
* Xcode 10.2
* Xcode 10.2+
* Swift 5.0
* iOS 9.0+

## Installation
### Carthage
```
github "mshrwtnb/ALRT" ~> 1.3.4
github "mshrwtnb/ALRT" ~> 1.3.5
```
### Cocoapods
```
pod repo update
pod 'ALRT', '~> 1.3.4'
pod 'ALRT', '~> 1.3.5'
```

## Usage
Expand Down Expand Up @@ -157,5 +157,16 @@ ALRT.create(.alert, title: "Source?")
.show(self) // self = source view controller
```

### Default Configuration
Set default tintColor and titles for OK and Cancel buttons.

```swift
ALRT.defaultConfiguration = .init(
tintColor: UIColor.blue,
okTitle: "OK👍",
cancelTitle: "Cancel👎"
)
```

## License
ALRT is released under the MIT license. [See LICENSE](https://github.com/mshrwtnb/ALRT/blob/master/LICENSE) for details.

0 comments on commit 38aaf37

Please sign in to comment.