Skip to content

Commit 2b06318

Browse files
Remove unowned self from animateWithDuration due to it being a nonescaping closure
1 parent f32d976 commit 2b06318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TextFieldEffects/TextFieldEffects/HoshiTextField.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ import UIKit
113113

114114
override public func animateViewsForTextDisplay() {
115115
if text!.isEmpty {
116-
UIView.animateWithDuration(0.35, delay: 0.0, usingSpringWithDamping: 0.8, initialSpringVelocity: 2.0, options: UIViewAnimationOptions.BeginFromCurrentState, animations: ({ [unowned self] in
116+
UIView.animateWithDuration(0.35, delay: 0.0, usingSpringWithDamping: 0.8, initialSpringVelocity: 2.0, options: UIViewAnimationOptions.BeginFromCurrentState, animations: ({
117117
self.layoutPlaceholderInTextRect()
118118
self.placeholderLabel.alpha = 1
119-
}), completion: nil)
119+
}), completion: nil)
120120

121121
self.activeBorderLayer.frame = self.rectForBorder(self.borderThickness.active, isFilled: false)
122122
}

0 commit comments

Comments
 (0)