From 60e07184b80be07621148c84ed842a10b622bc7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20C=C5=93ur?= Date: Mon, 19 Oct 2020 09:30:23 +0800 Subject: [PATCH] Supporting Swift 4 on Xcode 12 --- Sources/ToastView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/ToastView.swift b/Sources/ToastView.swift index add1d55..f337629 100644 --- a/Sources/ToastView.swift +++ b/Sources/ToastView.swift @@ -52,7 +52,7 @@ open class ToastView: UIView { case .pad: return 60 case .tv: return 90 case .carPlay: return 30 - #if swift(>=5.3) + #if compiler(>=5.3) case .mac: return 60 #endif // default values @@ -69,7 +69,7 @@ open class ToastView: UIView { case .pad: return 40 case .tv: return 60 case .carPlay: return 20 - #if swift(>=5.3) + #if compiler(>=5.3) case .mac: return 40 #endif // default values @@ -138,7 +138,7 @@ open class ToastView: UIView { case .pad: return .systemFont(ofSize: 16) case .tv: return .systemFont(ofSize: 20) case .carPlay: return .systemFont(ofSize: 12) - #if swift(>=5.3) + #if compiler(>=5.3) case .mac: return .systemFont(ofSize: 16) #endif // default values