diff --git a/Sources/ToastView.swift b/Sources/ToastView.swift index 6145968..f337629 100644 --- a/Sources/ToastView.swift +++ b/Sources/ToastView.swift @@ -52,7 +52,9 @@ open class ToastView: UIView { case .pad: return 60 case .tv: return 90 case .carPlay: return 30 + #if compiler(>=5.3) case .mac: return 60 + #endif // default values case .unspecified: fallthrough @unknown default: return 30 @@ -67,7 +69,9 @@ open class ToastView: UIView { case .pad: return 40 case .tv: return 60 case .carPlay: return 20 + #if compiler(>=5.3) case .mac: return 40 + #endif // default values case .unspecified: fallthrough @unknown default: return 20 @@ -134,7 +138,9 @@ open class ToastView: UIView { case .pad: return .systemFont(ofSize: 16) case .tv: return .systemFont(ofSize: 20) case .carPlay: return .systemFont(ofSize: 12) + #if compiler(>=5.3) case .mac: return .systemFont(ofSize: 16) + #endif // default values case .unspecified: fallthrough @unknown default: return .systemFont(ofSize: 12)