Skip to content

Commit

Permalink
Fixed warnings that prevented Travis from passing
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyVancura committed Dec 14, 2016
1 parent 1f3e5d4 commit 1e3aa5e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Pod/Classes/UI/CardTextField+InterfaceBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions Pod/Classes/UI/CardTextField+PrefillInformation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions Pod/Classes/UI/CardTextField+ViewAnimations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Expand All @@ -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()
})
Expand All @@ -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
Expand Down Expand Up @@ -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()
Expand All @@ -118,7 +118,7 @@ public extension CardTextField {
}
}

internal func translateCardNumberIn() {
open func translateCardNumberIn() {
if isRightToLeftLanguage {
UIView.performWithoutAnimation {
self.numberInputTextField?.alpha = 1
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/UI/CardTextFieldDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

0 comments on commit 1e3aa5e

Please sign in to comment.