This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| func valueForTheme<Value>(light: Value, dark: Value) -> Value { | |
| return UITraitCollection.current.userInterfaceStyle == .dark ? dark : light | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo 'Preparations' | |
| cd ~ | |
| mkdir SwiftSetup | |
| cd ~/SwiftSetup | |
| mkdir Backup | |
| echo 'cd to ~/SwiftSetup' | |
| echo 'Fetching dependencies: clang, libicu-dev libssl-dev openssl' | |
| sudo apt-get install clang libicu-dev libssl-dev openssl |
NewerOlder