Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

navigationBarTitle text size swiftui

struct YourView: View {
    init() {
        //Use this if NavigationBarTitle is with Large Font
        UINavigationBar.appearance().largeTitleTextAttributes = [.font : UIFont(name: "Georgia-Bold", size: 20)!]

        //Use this if NavigationBarTitle is with displayMode = .inline
        //UINavigationBar.appearance().titleTextAttributes = [.font : UIFont(name: "Georgia-Bold", size: 20)!]
    }
    var body: some View {
        NavigationView {
            Text("Hello World!")
              .navigationBarTitle(Text("Dashboard").font(.subheadline), displayMode: .large)
            //.navigationBarTitle (Text("Dashboard"), displayMode: .inline)
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Swift :: swift infinite while loop 
Swift :: check notification permission ios swift 
Swift :: swift iterate through string 
Swift :: Swift Remove an Element from an Array 
Swift :: swiftui crop image 
Swift :: case insensitive multiple word search swift 
Swift :: guard let swift 
Swift :: swift fit label to text 
Swift :: how to set return type swift 
Swift :: swift extension Array with specific element type 
Swift :: how to add corner in swiftui 
Swift :: Swift guard-let Statement 
Swift :: swiftui line break text 
Swift :: variable sum in swift 
Swift :: check if UIView is UIButton or UILabel not 
Swift :: how to limit ui field in ios 
Swift :: Swift Access Struct Properties Swift 
Swift :: Swift Operators 
Swift :: how to darken view swiftui 
Swift :: Swift Optional Binding (if-let 
Swift :: Swift Escape Sequences 
Swift :: SwifUI call the function in the cordinator 
Swift :: struct exsmple 
Swift :: Swift mutating Methods 
Swift :: image preprocessing in python 
Swift :: ios network request 
Ruby :: how to get tables list in rails 
Ruby :: frozen string literal ruby 
Ruby :: ruby array includes 
Ruby :: rails excep 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =