Make public some things

This commit is contained in:
Ivan Zinovyev 2016-12-19 17:19:28 +03:00
parent a54b2c0fab
commit 59578df429
2 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@
import Foundation
class EditableTextField: UITextField {
public class EditableTextField: UITextField {
var getType: (() -> TextType?)?
@ -20,7 +20,7 @@ class EditableTextField: UITextField {
#selector(paste(_:))
]
override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
override public func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
guard let type = getType?() else {
return super.canPerformAction(action, withSender: sender)
}
@ -34,7 +34,7 @@ class EditableTextField: UITextField {
return super.canPerformAction(action, withSender: sender)
}
override func caretRect(for position: UITextPosition) -> CGRect {
override public func caretRect(for position: UITextPosition) -> CGRect {
guard let type = getType?() else {
return super.caretRect(for: position)
}

View File

@ -46,10 +46,10 @@ public class UIAnimatedTextField: UIView {
// MARK: - UI Properties
private(set) var textField: EditableTextField!
private(set) var placeholderLabel: UILabel!
private(set) public var textField: EditableTextField!
private(set) public var placeholderLabel: UILabel!
private(set) public var lineView: UIView!
private(set) var lineView: UIView!
private var disclosureIndicatorImageView: UIImageView!
// MARK: - Properties