You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Rules, select Branch (with branch set to master).
Click Finish.
Setup
If you want to use storyboards, just drop a TextField into your storyboard and set its class to ParkedTextField. Then customize through the attributes inspector or code. Otherwise, you can write the code to initialize with frame and set the properties.
Properties
/// Constant text. Defaults to "".
varparkedText:String=".slack.com"
/// Placeholder next to parkedText. Defaults to "".
varplaceholderText:String="yourteam"
/// Variable part of the text. Defaults to "".
vartypedText:String
/// Font of parkedText. Defaults to bold version of the text field's font if it exists. If not, defaults to the font of the text field.
varparkedTextFont:UIFont!
/// Color of parkedText. Defaults the font's color.
varparkedTextColor:UIColor!
Development
Instead of subclassing UITextField, investigate making a UITextField extension.
Test setting placeholder and text. In some cases it breaks the parkedText.