Skip to content

Commit 041e615

Browse files
Merge branch 'develop' of https://github.com/htmlprogrammist/EmojiPicker into htmlprogrammist-feat-ci
2 parents 0877b03 + 7e0c70e commit 041e615

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

Example App/EmojiPicker/AppDelegate.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1616
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
1717

1818
let window = UIWindow(frame: UIScreen.main.bounds)
19-
20-
if #available(iOS 13.0, *) {
21-
window.overrideUserInterfaceStyle = .light
22-
}
2319
window.rootViewController = ViewController()
2420
window.makeKeyAndVisible()
2521
self.window = window

Example App/EmojiPicker/ViewController.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ class ViewController: UIViewController {
3434
}
3535

3636
private func setupView() {
37-
view.backgroundColor = .white
37+
if #available(iOS 13.0, *) {
38+
view.backgroundColor = .systemBackground
39+
} else {
40+
view.backgroundColor = .white
41+
}
42+
3843
view.addSubview(emojiButton)
3944

4045
NSLayoutConstraint.activate([

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Ready for use with Swift 4.2+ on iOS 11.1+
3333

3434
The [Swift Package Manager](https://www.swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
3535

36+
In Xcode navigate to File → Swift Packages → Add Package Dependency…. Use this URL to add the dependency:
37+
38+
```
39+
‌https://github.com/htmlprogrammist/EmojiPicker
40+
```
41+
3642
Once you have your Swift package set up, adding as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
3743

3844
```swift

0 commit comments

Comments
 (0)