Skip to content

Commit

Permalink
Fixed Xcode 10 migration issue with UIBarButton and custom Style stru…
Browse files Browse the repository at this point in the history
…ct (#18)
  • Loading branch information
Hardenn authored and oltv00 committed Oct 1, 2018
1 parent 1fb1062 commit 3de8c5a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ extension UIBarButtonItem {
/// Close bar button item.
///
/// Image `barButtonItem.close`.
static let close = Style(name: "close") { (item: UIBarButtonItem) in
static let close = YandexCheckoutPayments.Style(name: "close") { (item: UIBarButtonItem) in
item.style = .plain
item.image = .templatedClose
}

/// Back bar button item.
///
/// Image `barButtonItem.back`.
static let back = Style(name: "back") { (item: UIBarButtonItem) in
static let back = YandexCheckoutPayments.Style(name: "back") { (item: UIBarButtonItem) in
item.style = .plain
item.image = .back
}

/// Close bar button item with ability to set tint color.
///
/// Image `button.templatedClose`.
static let templatedClose = Style(name: "templatedClose") { (item: UIBarButtonItem) in
static let templatedClose = YandexCheckoutPayments.Style(name: "templatedClose") { (item: UIBarButtonItem) in
item.tintColor = nil
item.style = .plain
item.image = .templatedClose
Expand Down

0 comments on commit 3de8c5a

Please sign in to comment.