Skip to content

Commit d6b49c2

Browse files
committed
Preventing the Interface Builder bug
1 parent 3a18c5b commit d6b49c2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Screenshots/Yoshiko.gif

-11.4 KB
Loading

TextFieldEffects/TextFieldEffects/YoshikoTextField.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,10 @@ import UIKit
178178
return CGRectOffset(bounds, textFieldInsets.x, textFieldInsets.y + placeholderHeight / 2)
179179
}
180180

181+
// MARK: - Interface Builder
182+
183+
public override func prepareForInterfaceBuilder() {
184+
placeholderLabel.alpha = 1
185+
}
186+
181187
}

0 commit comments

Comments
 (0)