diff --git a/CameraManager.podspec b/CameraManager.podspec index 389ebc9..03be2fb 100644 --- a/CameraManager.podspec +++ b/CameraManager.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = "CameraManager" - s.version = "1.0.14" + s.version = "2.0.0" s.summary = "This is a simple Swift class to provide all the configurations you need to create custom camera view in your app. Just drag, drop and use." s.homepage = "https://github.com/imaginary-cloud/CameraManager" s.license = 'MIT' s.author = { "nelanelanela" => "nterlecka@imaginarycloud.com" } - s.source = { :git => "https://github.com/imaginary-cloud/CameraManager.git", :tag => "1.0.14" } + s.source = { :git => "https://github.com/imaginary-cloud/CameraManager.git", :tag => "2.0.0" } s.social_media_url = 'http://www.imaginarycloud.com/' s.platform = :ios, '8.0' s.requires_arc = true diff --git a/README.md b/README.md index 38acec8..a3843d9 100755 --- a/README.md +++ b/README.md @@ -6,16 +6,28 @@ This is a simple Swift class to provide all the configurations you need to creat It follows orientation change and updates UI accordingly, supports front and rear camera selection, different flash modes, inputs and outputs. Just drag, drop and use. +Now it's compatibile with latest Swift syntax if you're using any Swift version prior to 2.0 make sure to use one of the previously tagged releases. + ## Installation with CocoaPods The easiest way to install the CameraManager is with: [CocoaPods](http://cocoapods.org) ### Podfile +If you want Swift 2.0 syntax use: + ```ruby use_frameworks! -pod 'CameraManager', '~> 1.0' +pod 'CameraManager', '~> 2.0' +``` + +If you want Swift 1.2 syntax use: + +```ruby +use_frameworks! + +pod 'CameraManager', '~> 1.0.14' ``` ## Installation with Carthage @@ -24,9 +36,18 @@ pod 'CameraManager', '~> 1.0' Add the following line to your Cartfile: +If you want Swift 2.0 syntax use: + ``` github "imaginary-cloud/CameraManager" >= 1.0 ``` + +If you want Swift 1.2 syntax use: + +``` +github "imaginary-cloud/CameraManager" >= 2.0 +``` + And run `carthage update` to build the dynamic framework. ## How to use diff --git a/camera.xcodeproj/project.xcworkspace/xcuserdata/nataliaterlecka.xcuserdatad/UserInterfaceState.xcuserstate b/camera.xcodeproj/project.xcworkspace/xcuserdata/nataliaterlecka.xcuserdatad/UserInterfaceState.xcuserstate index 597e90e..8b4692d 100644 Binary files a/camera.xcodeproj/project.xcworkspace/xcuserdata/nataliaterlecka.xcuserdatad/UserInterfaceState.xcuserstate and b/camera.xcodeproj/project.xcworkspace/xcuserdata/nataliaterlecka.xcuserdatad/UserInterfaceState.xcuserstate differ