Skip to content

Commit

Permalink
Supporting Swift 4 on Xcode 12
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur authored Oct 19, 2020
1 parent a4c7377 commit 60e0718
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/ToastView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 60e0718

Please sign in to comment.