Skip to content

kyam28/iOS-awesome-tips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

iOS-awesome-tips

Keyboard

Fixing the keyboard: NotificationCenter

But, most solutions tend to be quite DIY, and have to be implemented for each view controller that needs it. https://github.com/michaeltyson/TPKeyboardAvoiding

UILabel

Make part of a UILabel bold in Swift

private func attributedText(withString string: String, targetString: String, color: UIColor) -> NSAttributedString {
    let normalAttributes = [NSAttributedString.Key.foregroundColor: UIColor.gray700,
                            NSAttributedString.Key.font: UIFont.notoSansMediumFontOfSize(size: 12)]
    let attributedString = NSMutableAttributedString(string: string, attributes: normalAttributes)
    let targetColorAttribute: [NSAttributedString.Key: Any] = [NSAttributedString.Key.foregroundColor: UIColor.ceruleanBlue]
    let range = (string as NSString).range(of: targetString)
    attributedString.addAttributes(targetColorAttribute, range: range)
    return attributedString
}

UINavigationController

Adding a Gradient Background to UINavigationBar on iOS

Firebase

Change GoogleService-Info.plist on development or production

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published