Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

swift change status bar color

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    setNeedsStatusBarAppearanceUpdate()
}
override var preferredStatusBarStyle: UIStatusBarStyle {
    .lightContent
}
Comment

white status bar swift

override var preferredStatusBarStyle: UIStatusBarStyle {     
      return .lightContent
}
Comment

PREVIOUS NEXT
Code Example
Swift :: how do i get a string from a float swift to 1 decimal swift 
Swift :: add top corner radius swift 
Swift :: swift url encode string 
Swift :: using swipe gesture recognizer swift 
Swift :: append new element to dictionary in swift 
Swift :: costume font size swift ui 
Swift :: swift round double to 2 decimal places 
Swift :: disable swipe to delete swift 
Swift :: swift change background color 
Swift :: swift animate add subview 
Swift :: define struct swift 
Swift :: Module compiled with Swift 5.3 cannot be imported by the Swift 5.3.1 compiler 
Swift :: change font swiftui 
Swift :: swift change label text 
Swift :: how to set the stack color in swiftui 
Swift :: swiftui coin flip 
Swift :: swift remove value dictionary 
Swift :: how to make text selectable swiftui 
Swift :: Play Video in AVPlayer ViewController Sample Code Swift 
Swift :: Swift for-in Loop 
Swift :: swift function declaration 
Swift :: two variable sum in swift 
Swift :: Swift Objects 
Swift :: why launch screen changes appear after 1 day in ios swift 
Swift :: Swift enum With Switch Statement 
Swift :: swift if let 
Swift :: swift check if class is of type 
Swift :: do something when your HTTP response finishes. swift 
Swift :: How to load Google map styling from json file for ios swift? 
Swift :: Arithmetic Operators in Swift 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =