[FIX] Convenient initializer was not public
This commit is contained in:
parent
5d2004130a
commit
dc05958f60
|
@ -1,7 +1,7 @@
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'QRCodeReader.swift'
|
s.name = 'QRCodeReader.swift'
|
||||||
s.module_name = 'QRCodeReader'
|
s.module_name = 'QRCodeReader'
|
||||||
s.version = '3.1.5'
|
s.version = '3.1.6'
|
||||||
s.license = 'MIT'
|
s.license = 'MIT'
|
||||||
s.summary = 'Simple QRCode and 1D bar code reader in Swift'
|
s.summary = 'Simple QRCode and 1D bar code reader in Swift'
|
||||||
s.homepage = 'https://github.com/yannickl/QRCodeReader.swift.git'
|
s.homepage = 'https://github.com/yannickl/QRCodeReader.swift.git'
|
||||||
|
|
|
@ -44,17 +44,17 @@ public final class QRCodeReaderViewController: UIViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Initializes a view controller to read QRCodes from a displayed video preview and a cancel button to be go back.
|
/// Initializes a view controller to read QRCodes from a displayed video preview and a cancel button to be go back.
|
||||||
convenience init(cancelButtonTitle: String) {
|
convenience public init(cancelButtonTitle: String) {
|
||||||
self.init(cancelButtonTitle: cancelButtonTitle, metadataObjectTypes: [AVMetadataObjectTypeQRCode])
|
self.init(cancelButtonTitle: cancelButtonTitle, metadataObjectTypes: [AVMetadataObjectTypeQRCode])
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Initializes a reader view controller with a list of metadata object types.
|
/// Initializes a reader view controller with a list of metadata object types.
|
||||||
convenience init(metadataObjectTypes: [String]) {
|
convenience public init(metadataObjectTypes: [String]) {
|
||||||
self.init(cancelButtonTitle: "Cancel", metadataObjectTypes:[AVMetadataObjectTypeQRCode])
|
self.init(cancelButtonTitle: "Cancel", metadataObjectTypes:[AVMetadataObjectTypeQRCode])
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Initializes a view controller to read wanted metadata object types from a displayed video preview and a cancel button to be go back.
|
/// Initializes a view controller to read wanted metadata object types from a displayed video preview and a cancel button to be go back.
|
||||||
convenience init(cancelButtonTitle: String, metadataObjectTypes: [String]) {
|
convenience public init(cancelButtonTitle: String, metadataObjectTypes: [String]) {
|
||||||
let reader = QRCodeReader(metadataObjectTypes: metadataObjectTypes)
|
let reader = QRCodeReader(metadataObjectTypes: metadataObjectTypes)
|
||||||
|
|
||||||
self.init(cancelButtonTitle: cancelButtonTitle, coderReader: reader)
|
self.init(cancelButtonTitle: cancelButtonTitle, coderReader: reader)
|
||||||
|
|
|
@ -26,7 +26,7 @@ $ touch Podfile
|
||||||
$ edit Podfile
|
$ edit Podfile
|
||||||
source 'https://github.com/CocoaPods/Specs.git'
|
source 'https://github.com/CocoaPods/Specs.git'
|
||||||
platform :ios, '8.0'
|
platform :ios, '8.0'
|
||||||
pod 'QRCodeReader.swift', '~> 3.1.4'
|
pod 'QRCodeReader.swift', '~> 3.1.6'
|
||||||
```
|
```
|
||||||
|
|
||||||
Install into your project:
|
Install into your project:
|
||||||
|
|
Loading…
Reference in New Issue