mirror of
https://github.com/devxoul/Toaster.git
synced 2026-01-18 13:11:20 +01:00
Make .vision defaults match .ipad instead of .iphone.
This commit is contained in:
@@ -52,9 +52,8 @@ 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
|
||||
case .vision: return 60
|
||||
// default values
|
||||
case .unspecified: fallthrough
|
||||
@unknown default: return 30
|
||||
@@ -69,9 +68,8 @@ 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
|
||||
case .vision: return 40
|
||||
// default values
|
||||
case .unspecified: fallthrough
|
||||
@unknown default: return 20
|
||||
@@ -138,9 +136,8 @@ 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
|
||||
case .vision: return .systemFont(ofSize: 16)
|
||||
// default values
|
||||
case .unspecified: fallthrough
|
||||
@unknown default: return .systemFont(ofSize: 12)
|
||||
|
||||
Reference in New Issue
Block a user