Skip to content

Commit

Permalink
Merge pull request #172 from vladislavsosiuk/improve-hoshitextfield
Browse files Browse the repository at this point in the history
Update borders relatively to text field's state
  • Loading branch information
raulriera committed Dec 8, 2018
2 parents fa2bebc + 9892740 commit 94a4e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TextFieldEffects/TextFieldEffects/HoshiTextField.swift
Expand Up @@ -128,10 +128,10 @@ import UIKit
// MARK: - Private

private func updateBorder() {
inactiveBorderLayer.frame = rectForBorder(borderThickness.inactive, isFilled: true)
inactiveBorderLayer.frame = rectForBorder(borderThickness.inactive, isFilled: !isFirstResponder)
inactiveBorderLayer.backgroundColor = borderInactiveColor?.cgColor

activeBorderLayer.frame = rectForBorder(borderThickness.active, isFilled: false)
activeBorderLayer.frame = rectForBorder(borderThickness.active, isFilled: isFirstResponder)
activeBorderLayer.backgroundColor = borderActiveColor?.cgColor
}

Expand Down

0 comments on commit 94a4e98

Please sign in to comment.