Skip to content

Commit

Permalink
Updated Example App
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenTiigi committed Sep 18, 2018
1 parent 517cd8f commit 0e6ae50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Example/ExampleViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ExampleViewController: UITableViewController {
case .backgroundColor:
return ["White", "Dark"]
case .tintColor:
return ["Blue", "Orange", "Purple", "Red", "Green"]
return ["Blue", "LightBlue", "Orange", "Purple", "Red", "Green"]
case .titleViewAnimation, .itemsViewAnimation, .detailButtonAnimation, .completionButtonAnimation:
return ["None", "Fade", "SlideUp", "SlideDown", "SlideLeft", "SlideRight"]
}
Expand Down Expand Up @@ -108,7 +108,7 @@ class ExampleViewController: UITableViewController {
return
}
let safariViewController = SFSafariViewController(url: url)
//safariViewController.preferredControlTintColor = self.tintColor
safariViewController.preferredControlTintColor = .main
self.present(safariViewController, animated: true)
}

Expand Down
4 changes: 4 additions & 0 deletions Example/Supporting Files/SharedTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class SharedTheme {
switch (self.backgroundColor, self.tintColor) {
case ("White", "Blue"):
configuration.apply(theme: .default)
case ("White", "LightBlue"):
configuration.apply(theme: .whiteLightBlue)
case ("White", "Orange"):
configuration.apply(theme: .whiteOrange)
case ("White", "Purple"):
Expand All @@ -65,6 +67,8 @@ class SharedTheme {
configuration.apply(theme: .whiteGreen)
case ("Dark", "Blue"):
configuration.apply(theme: .darkDefault)
case ("Dark", "LightBlue"):
configuration.apply(theme: .darkLightBlue)
case ("Dark", "Orange"):
configuration.apply(theme: .darkOrange)
case ("Dark", "Purple"):
Expand Down

0 comments on commit 0e6ae50

Please sign in to comment.