Make .vision defaults match .ipad instead of .iphone.

This commit is contained in:
Cœur
2024-09-03 13:20:48 +02:00
parent 0beaf7ba24
commit db7f2f5096

View File

@@ -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)