From bd1b7573a3099b29edf783297eb4ab4ba6814780 Mon Sep 17 00:00:00 2001 From: Haik Aslanyan Date: Wed, 15 Apr 2020 15:45:55 +0400 Subject: [PATCH] fixed constraint ambiguity --- .../xcode/package.xcworkspace/contents.xcworkspacedata | 7 +++++++ RoundCode.podspec | 2 +- Sources/Public/RCCameraViewController.swift | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/RoundCode.podspec b/RoundCode.podspec index e5d97e1..16f1498 100644 --- a/RoundCode.podspec +++ b/RoundCode.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'RoundCode' - s.version = '1.0.0' + s.version = '1.0.1' s.summary = 'Facebook messenger style custom barcode.' s.description = <<-DESC Encode and decode data into custom stylish barcode. diff --git a/Sources/Public/RCCameraViewController.swift b/Sources/Public/RCCameraViewController.swift index 54c859b..689af45 100644 --- a/Sources/Public/RCCameraViewController.swift +++ b/Sources/Public/RCCameraViewController.swift @@ -42,8 +42,9 @@ public final class RCCameraViewController: UIViewController, UIImagePickerContro private var circleLayer = CAShapeLayer() private lazy var cameraView: UIView = { let cameraView = UIView() - cameraView.backgroundColor = .black + cameraView.backgroundColor = .clear self.view.addSubview(cameraView) + cameraView.translatesAutoresizingMaskIntoConstraints = false cameraView.leadingAnchor.constraint(equalTo: self.view.leadingAnchor, constant: 0).isActive = true cameraView.trailingAnchor.constraint(equalTo: self.view.trailingAnchor, constant: 0).isActive = true cameraView.topAnchor.constraint(equalTo: self.view.topAnchor, constant: 0).isActive = true