mirror of
https://github.com/devxoul/Toaster.git
synced 2026-01-18 21:21:19 +01:00
Merge pull request #204 from elblonder2013/swift-4
compatibility swift 5.3 and Xcode 12.1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user