From 3de8c5a48e35775d42b305c7562ba32ff3d2bd79 Mon Sep 17 00:00:00 2001 From: Nina Dmitrieva <1327323+Hardenn@users.noreply.github.com> Date: Mon, 1 Oct 2018 13:06:59 +0400 Subject: [PATCH] Fixed Xcode 10 migration issue with UIBarButton and custom Style struct (#18) --- .../Molecules/UIKit+Styles/UIBarButtonItem+Style.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YandexCheckoutPayments/Atomic Design/Molecules/UIKit+Styles/UIBarButtonItem+Style.swift b/YandexCheckoutPayments/Atomic Design/Molecules/UIKit+Styles/UIBarButtonItem+Style.swift index 8eec29ea..a2b1062c 100644 --- a/YandexCheckoutPayments/Atomic Design/Molecules/UIKit+Styles/UIBarButtonItem+Style.swift +++ b/YandexCheckoutPayments/Atomic Design/Molecules/UIKit+Styles/UIBarButtonItem+Style.swift @@ -34,7 +34,7 @@ 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 } @@ -42,7 +42,7 @@ extension UIBarButtonItem { /// 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 } @@ -50,7 +50,7 @@ extension UIBarButtonItem { /// 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