Skip to content

Commit d5d0e76

Browse files
author
zmeriksen
committed
Support Xcode 10.3
1 parent 1ef1aee commit d5d0e76

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

Sources/SwiftUIKit/Navigation/Navigate.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ public class Navigate {
2525
public var color: UIColor {
2626
switch self {
2727
case .error:
28-
return .systemRed
28+
return .red
2929
case .warning:
30-
return .systemYellow
30+
return .yellow
3131
case .success:
32-
return .systemGreen
32+
return .green
3333
case .info:
34-
return .systemBlue
34+
return .blue
3535
case .debug:
36-
return .systemGray
36+
return .gray
3737
case .custom:
3838
return .clear
3939
}

Sources/SwiftUIKit/Views/EffectView.swift

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,3 @@ public class BlurView: UIVisualEffectView {
3636
fatalError("init(coder:) has not been implemented")
3737
}
3838
}
39-
40-
@available(iOS 13.0, *)
41-
public class VibrancyView: UIVisualEffectView {
42-
public init(blurStyle blur: UIBlurEffect.Style = UIBlurEffect.Style.regular,
43-
vibrancyStyle vibrancy: UIVibrancyEffectStyle = .fill,
44-
closure: () -> UIView) {
45-
super.init(effect: UIVibrancyEffect(blurEffect: UIBlurEffect(style: blur),
46-
style: vibrancy))
47-
48-
contentView.embed {
49-
closure()
50-
}
51-
}
52-
53-
required init?(coder aDecoder: NSCoder) {
54-
fatalError("init(coder:) has not been implemented")
55-
}
56-
}

Sources/SwiftUIKit/Views/LoadingView.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ import UIKit
1111
public class LoadingView: UIActivityIndicatorView {
1212
public init(forStyle style: UIActivityIndicatorView.Style? = nil) {
1313
guard let style = style else {
14-
if #available(iOS 13.0, *) {
15-
super.init(style: .medium)
16-
} else {
17-
super.init(style: .white)
18-
}
14+
super.init(style: .white)
1915
return
2016
}
2117

0 commit comments

Comments
 (0)