Skip to content

Commit

Permalink
renamed ButtonPicker.configuration to avoid naming conflict with iO…
Browse files Browse the repository at this point in the history
…S 15 `UIButton.configuration`
  • Loading branch information
Kirill Serebriakov committed Sep 1, 2021
1 parent c0b3230 commit afbec27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/BottomView/ButtonPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}()
Expand All @@ -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()
Expand Down

0 comments on commit afbec27

Please sign in to comment.