Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified AnimatedTextInput/Assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified AnimatedTextInput/Assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified AnimatedTextInput/Assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified AnimatedTextInput/Assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions AnimatedTextInput/Classes/AnimatedTextInput.swift
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ extension AnimatedTextInput: TextInputDelegate {

open func textInputDidChange(textInput: TextInput) {
updateCounter()
sendActions(for: .editingChanged)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was already added in another PR

delegate?.animatedTextInputDidChange?(animatedTextInput: self)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ fileprivate struct AnimatedTextInputPasswordConfigurator {
textField.autocapitalizationType = .none
if toggleable {
let disclosureButton = UIButton(type: .custom)
disclosureButton.frame = CGRect(origin: CGPoint.zero, size: CGSize(width: 20, height: 20))
disclosureButton.frame = CGRect(origin: CGPoint.zero, size: CGSize(width: 25, height: 21))
let bundle = Bundle(path: Bundle(for: AnimatedTextInput.self).path(forResource: "AnimatedTextInput", ofType: "bundle")!)
let normalImage = UIImage(named: "cm_icon_input_eye_normal", in: bundle, compatibleWith: nil)
let selectedImage = UIImage(named: "cm_icon_input_eye_selected", in: bundle, compatibleWith: nil)
disclosureButton.imageView?.contentMode = .scaleAspectFit
disclosureButton.setImage(normalImage, for: .normal)
disclosureButton.setImage(selectedImage, for: .selected)
textField.add(disclosureButton: disclosureButton) {
Expand Down