Make public some things
This commit is contained in:
parent
a54b2c0fab
commit
59578df429
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue