mirror of
https://github.com/samsonjs/SwiftyCam.git
synced 2026-04-19 13:15:51 +00:00
Updated README and PODSPEC
This commit is contained in:
parent
67ff337423
commit
85fce5ec50
3 changed files with 16 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# CHANGELOG
|
||||
|
||||
## Version 2.1.0
|
||||
- Added ability to change default camera orientation
|
||||
- Added `defaultCamera` property
|
||||
- Minor bug fixes
|
||||
|
||||
## Version 2.0.0
|
||||
- Changed `SwiftyCamViewController` delegate function naming
|
||||
- Changed `kMaximumVideoDuration` property to `maximumVideoDuration`
|
||||
|
|
|
|||
10
README.md
10
README.md
|
|
@ -201,6 +201,16 @@ For front facing videos, a white, 85% opaque view will be placed over the video
|
|||
|
||||
## Switching Camera
|
||||
|
||||
By default, SwiftyCam will launch to the rear facing camera. This can be changed by changing the `defaultCamera` property in `viewDidLoad`:
|
||||
|
||||
```swift
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
defaultCamera = .front
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
SwiftyCam supports capture from both the front and back cameras. To switch cameras, call the function:
|
||||
|
||||
```swift
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'SwiftyCam'
|
||||
s.version = '2.0.0'
|
||||
s.version = '2.1.0'
|
||||
s.summary = 'A Simple, Snapchat inspired camera Framework written in Swift'
|
||||
s.ios.deployment_target = '8.0'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue