Starting from iOS/iPadOS 13, a dark user interface style is available, similar to the dark mode introduced in macOS Mojave. How can I check whether the user has enabled the
in objective-c you'd want to do:
if( self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark ){ //is dark }else{ //is light }