diff --git a/Pod/Classes/UI/CardTextField+InterfaceBuilder.swift b/Pod/Classes/UI/CardTextField+InterfaceBuilder.swift index 6e335a6..fb5a34d 100644 --- a/Pod/Classes/UI/CardTextField+InterfaceBuilder.swift +++ b/Pod/Classes/UI/CardTextField+InterfaceBuilder.swift @@ -6,7 +6,7 @@ // Copyright © 2016 Prolific Interactive. All rights reserved. // -public extension CardTextField { +extension CardTextField { override public final var textColor: UIColor? { didSet { let textFieldArray: [UITextField?] = [numberInputTextField, cvcTextField, monthTextField, yearTextField] diff --git a/Pod/Classes/UI/CardTextField+PrefillInformation.swift b/Pod/Classes/UI/CardTextField+PrefillInformation.swift index f290dfe..95a10dd 100644 --- a/Pod/Classes/UI/CardTextField+PrefillInformation.swift +++ b/Pod/Classes/UI/CardTextField+PrefillInformation.swift @@ -8,7 +8,7 @@ import UIKit -public extension CardTextField { +extension CardTextField { /** Fills all form fields of this card text field with the information provided and moves to card detail, if the provided card number was valid. @@ -18,7 +18,7 @@ public extension CardTextField { - parameter year: The year that should be shown in the year input field. - parameter cvc: The CVC that should be shown in the CVC input field. */ - public func prefill(_ number: String?, month: Int?, year: Int?, cvc: String?) { + open func prefill(_ number: String?, month: Int?, year: Int?, cvc: String?) { if let year = year { var trimmedYear = year if year > 100 { diff --git a/Pod/Classes/UI/CardTextField+ViewAnimations.swift b/Pod/Classes/UI/CardTextField+ViewAnimations.swift index b5b8d97..75b2002 100644 --- a/Pod/Classes/UI/CardTextField+ViewAnimations.swift +++ b/Pod/Classes/UI/CardTextField+ViewAnimations.swift @@ -8,13 +8,13 @@ import UIKit -public extension CardTextField { +extension CardTextField { // MARK: - View animations /** Moves the card number input field to the left outside of the screen with an animation of the duration `viewAnimationDuration`, so that only the last group of the card number is visible. At the same time, the card detail (expiration month and year and CVC) slide in from the right. */ - public func moveCardNumberOutAnimated() { + open func moveCardNumberOutAnimated() { UIView.animate(withDuration: viewAnimationDuration, animations: { [weak self] _ in self?.moveCardNumberOut() }) @@ -23,7 +23,7 @@ public extension CardTextField { /** Moves the full card number input field to inside the screen with an animation of the duration `viewAnimationDuration`. At the same time, the card detail (expiration month and year and CVC) slide outside the view. */ - public func moveCardNumberInAnimated() { + open func moveCardNumberInAnimated() { UIView.animate(withDuration: viewAnimationDuration, animations: { [weak self] _ in self?.moveCardNumberIn() }) @@ -32,7 +32,7 @@ public extension CardTextField { /** Moves the card number input field to the left outside of the screen, so that only the last group of the card number is visible. At the same time, the card detail (expiration month and year and CVC) are displayed to its right. */ - public func moveCardNumberOut() { + open func moveCardNumberOut() { // If the card number is invalid, do not allow to move to the card detail if cardType?.validate(number: card.bankCardNumber) != .Valid { return @@ -92,7 +92,7 @@ public extension CardTextField { /** Moves the full card number input field to inside the screen. At the same time, the card detail (expiration month and year and CVC) are moved outside the view. */ - public func moveCardNumberIn() { + open func moveCardNumberIn() { let infoTextFields: [UITextField?] = [monthTextField, yearTextField, cvcTextField] translateCardNumberIn() @@ -118,7 +118,7 @@ public extension CardTextField { } } - internal func translateCardNumberIn() { + open func translateCardNumberIn() { if isRightToLeftLanguage { UIView.performWithoutAnimation { self.numberInputTextField?.alpha = 1 diff --git a/Pod/Classes/UI/CardTextFieldDelegate.swift b/Pod/Classes/UI/CardTextFieldDelegate.swift index 8f8dc70..6629a01 100644 --- a/Pod/Classes/UI/CardTextFieldDelegate.swift +++ b/Pod/Classes/UI/CardTextFieldDelegate.swift @@ -46,7 +46,7 @@ public protocol CardTextFieldDelegate { } public extension CardTextFieldDelegate { - public func cardTextFieldShouldProvideAccessoryButtonAccessibilityLabel(_ cardTextField: CardTextField) -> String? { + func cardTextFieldShouldProvideAccessoryButtonAccessibilityLabel(_ cardTextField: CardTextField) -> String? { return Localization.AccessoryButtonAccessibilityLabel.localizedStringWithComment("Accessibility label for accessory button") } }