From afbec27c3e64839513a426181bc273440e9e1fb4 Mon Sep 17 00:00:00 2001 From: Kirill Serebriakov Date: Wed, 1 Sep 2021 14:52:23 +0300 Subject: [PATCH] renamed `ButtonPicker.configuration` to avoid naming conflict with iOS 15 `UIButton.configuration` --- Source/BottomView/ButtonPicker.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/BottomView/ButtonPicker.swift b/Source/BottomView/ButtonPicker.swift index cf1e213b..87c01aae 100644 --- a/Source/BottomView/ButtonPicker.swift +++ b/Source/BottomView/ButtonPicker.swift @@ -13,12 +13,12 @@ class ButtonPicker: UIButton { static let buttonBorderSize: CGFloat = 68 } - var configuration = ImagePickerConfiguration() + var imagePickerConfiguration = ImagePickerConfiguration() lazy var numberLabel: UILabel = { [unowned self] in let label = UILabel() label.translatesAutoresizingMaskIntoConstraints = false - label.font = self.configuration.numberLabelFont + label.font = self.imagePickerConfiguration.numberLabelFont return label }() @@ -29,7 +29,7 @@ class ButtonPicker: UIButton { public init(configuration: ImagePickerConfiguration? = nil) { if let configuration = configuration { - self.configuration = configuration + self.imagePickerConfiguration = configuration } super.init(frame: .zero) configure()