From d53b4b84f61a1c4b906b6fb9693da6180e000f50 Mon Sep 17 00:00:00 2001 From: Igor Kislyuk Date: Mon, 26 Mar 2018 18:49:42 +0300 Subject: [PATCH] Private outlet fix --- CHANGELOG.md | 3 +++ LeadKitAdditions.podspec | 2 +- .../PassCode/View/BasePassCodeViewController.swift | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01bd1ae..5830578 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 0.1.5 +- **Update**: Passcode private configuration + ## 0.1.4 - **Update**: Refactor PassCode diff --git a/LeadKitAdditions.podspec b/LeadKitAdditions.podspec index 486883e..3e0c50b 100644 --- a/LeadKitAdditions.podspec +++ b/LeadKitAdditions.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "LeadKitAdditions" - s.version = "0.1.4" + s.version = "0.1.5" s.summary = "iOS framework with a bunch of tools for rapid development" s.homepage = "https://github.com/TouchInstinct/LeadKitAdditions" s.license = "Apache License, Version 2.0" diff --git a/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift b/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift index fa300c8..212a317 100644 --- a/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift +++ b/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift @@ -183,9 +183,9 @@ open class BasePassCodeViewController: UIViewController, ConfigurableController } /// Override to change action title text - open func actionTitle(for passCodeControllerState: PassCodeControllerState) -> String { + open func actionTitle(for passCodeControllerState: PassCodeControllerState) -> NSAttributedString { assertionFailure("You should override this method: actionTitle(for passCodeControllerState: PassCodeControllerState)") - return "" + return NSAttributedString(string: "") } // MARK: - Functions that you can override to customize your controller @@ -204,7 +204,7 @@ open class BasePassCodeViewController: UIViewController, ConfigurableController /// Override to change UI for state open func configureUI(for passCodeControllerState: PassCodeControllerState) { resetDotsUI() - titleLabel?.text = actionTitle(for: passCodeControllerState) + titleLabel?.attributedText = actionTitle(for: passCodeControllerState) } // MARK: - ConfigurableController