Merge pull request #204 from elblonder2013/swift-4

compatibility swift 5.3 and Xcode 12.1
This commit is contained in:
Suyeol Jeon
2020-12-09 13:00:38 +09:00
committed by GitHub

View File

@@ -66,6 +66,8 @@ open class ToastView: UIView {
case .pad: return 60
case .tv: return 90
case .carPlay: return 30
case .mac:
return 40
}
}()
@@ -77,6 +79,8 @@ open class ToastView: UIView {
case .pad: return 40
case .tv: return 60
case .carPlay: return 20
case .mac:
return 40
}
}()
@@ -101,6 +105,7 @@ open class ToastView: UIView {
case .pad: return .systemFont(ofSize: 16)
case .tv: return .systemFont(ofSize: 20)
case .carPlay: return .systemFont(ofSize: 12)
case .mac: return .systemFont(ofSize: 16)
}
}()
self.numberOfLines = 0