Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

Commit

Permalink
[Documentation] Update docs for Swift 3.0 and prefix changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinejr committed Sep 29, 2016
1 parent 730df78 commit edcd524
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Next

# 1.0.0-beta.2
- Change `rx_permission` to `rx.permission` to follow RxSwift guidelines.

# 1.0.0-beta.1
- Support for Swift 3.0

Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you want to use RxPermission with Swift 3.0, as of now you have to use these
in your Podfile to have it working (while waiting for the official release of Permission and RxSwift):

```ruby
pod 'RxPermission', '1.0.0-beta.1'
pod 'RxPermission', '1.0.0-beta.2'
pod 'Permission', :git => 'https://github.com/delba/Permission', :branch => 'swift-3.0'
pod 'RxSwift', :git => 'https://github.com/ReactiveX/RxSwift'
```
Expand All @@ -41,7 +41,7 @@ RxPermission makes a `rx_permission` Observable that you can subscribe in order
```swift
Permission
.Contacts
.rx_permission
.rx.permission
.subscribeNext { status in
print("Status: \(status)")
}
Expand All @@ -51,27 +51,27 @@ Permission
### Available permissions:
```swift
public enum PermissionType {
case Contacts
case LocationAlways
case LocationWhenInUse
case Notifications
case Microphone
case Camera
case Photos
case Reminders
case Events
case Bluetooth
case Motion
case contacts
case locationAlways
case locationWhenInUse
case notifications
case microphone
case camera
case photos
case reminders
case events
case bluetooth
case motion
}
```

### Available statuses:
```swift
public enum PermissionStatus {
case Authorized
case Denied
case Disabled
case NotDetermined
case authorized
case denied
case disabled
case notDetermined
}
```

Expand Down

0 comments on commit edcd524

Please sign in to comment.