From 7364cac289cb39a76a5732c66da8118850a53def Mon Sep 17 00:00:00 2001 From: vrujbr Date: Tue, 20 Jun 2017 14:24:23 +1000 Subject: [PATCH] ButtonPicker title font configuration bug fix Configuration field numberLabelFont had no effect because ButtonPicker was not initialising with configuration. This fixes the problem. --- Source/BottomView/BottomContainerView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/BottomView/BottomContainerView.swift b/Source/BottomView/BottomContainerView.swift index 302169f4..2d020680 100644 --- a/Source/BottomView/BottomContainerView.swift +++ b/Source/BottomView/BottomContainerView.swift @@ -17,7 +17,7 @@ open class BottomContainerView: UIView { var configuration = Configuration() lazy var pickerButton: ButtonPicker = { [unowned self] in - let pickerButton = ButtonPicker() + let pickerButton = ButtonPicker(configuration: self.configuration) pickerButton.setTitleColor(UIColor.white, for: UIControlState()) pickerButton.delegate = self pickerButton.numberLabel.isHidden = !self.configuration.showsImageCountLabel