You can set the appearance of the UILabel and other UIViews:
UILabel.appearance().font = UIFont(name: "yourFont", size: yourSize)
More General:
AnyUIView.appearance().font = UIFont(name: "yourFont", size: yourSize)
Related Contents:
- custom font not working programmatically in swift
- How do I parse this nested JSON using Codable with Swift?
- iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 Beta
- UIImage(contentsOfFile:) returning nil despite file existing in caches directory [duplicate]
- iOS 8 UITableView separator inset 0 not working
- Custom UITableViewCell from nib in Swift
- Rotate SCNCamera node looking at an object around an imaginary sphere
- What is an “unwrapped value” in Swift?
- How to detect orientation change?
- How can I convert from degrees to radians?
- AnyObject not working in Xcode8 beta6?
- How to access a specific field from Cloud FireStore Firebase in Swift
- Using NSUserDefaults on arrays
- Close iOS Keyboard by touching anywhere using Swift
- How can I scan barcodes on iOS? [closed]
- How do I write dispatch_after GCD in Swift 3, 4, and 5?
- Getting local notifications to show while app is in foreground Swift 3
- WKWebView open links from certain domain in safari
- Sqlite File Location Core Data
- How to use UIView autoresizingMask property programmatically?
- Detecting Network Connectivity Changes using Reachability, NSNotification and Network Link Conditioner in Swift
- Swift days between two NSDates
- Converting Hex String to NSData in Swift
- How to modify SWIFT_MODULE_NAME?
- Unexpectedly found nil IBOutlet in prepareForSegue
- AES encryption in swift
- How can I use an .a static library in swift?
- Calling a phone number in swift
- Draw text along circular path in Swift for iOS
- Present modal view controller in half size parent controller
- How can I set CG_CONTEXT_SHOW_BACKTRACE environmental variable?
- Swift 3.0 Error: Escaping closures can only capture inout parameters explicitly by value
- Custom init for UIViewController in Swift with interface setup in storyboard
- how to pass multiple values with a notification in swift
- Ordered map in Swift
- In iOS, how do I create a button that is always on top of all other view controllers?
- Check Battery Level iOS Swift [closed]
- How to add HTTP headers in request globally for iOS in swift
- How to add “Done” button to Numpad in iOS using Swift?
- How can I run an action when a state changes?
- How to debug an iOS extension (.appex)?
- swift 3: Type ‘Any?’ has no subscript members
- How to add a button to the MKPointAnnotation?
- Why is UICollectionViewCell’s outlet nil?
- Swift – UIButton with two lines of text
- Swift Modal View Controller with transparent background [duplicate]
- How do I set UIButton background color forState: UIControlState.Highlighted in Swift
- Hiding the tabbar and removing the space
- Add custom controls to AVPlayer in swift
- Delaying function in swift [duplicate]