Skip to content

Commit

Permalink
Support Xcode 10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zmeriksen committed Jan 30, 2020
1 parent 1ef1aee commit d5d0e76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 28 deletions.
10 changes: 5 additions & 5 deletions Sources/SwiftUIKit/Navigation/Navigate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ public class Navigate {
public var color: UIColor {
switch self {
case .error:
return .systemRed
return .red
case .warning:
return .systemYellow
return .yellow
case .success:
return .systemGreen
return .green
case .info:
return .systemBlue
return .blue
case .debug:
return .systemGray
return .gray
case .custom:
return .clear
}
Expand Down
18 changes: 0 additions & 18 deletions Sources/SwiftUIKit/Views/EffectView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,3 @@ public class BlurView: UIVisualEffectView {
fatalError("init(coder:) has not been implemented")
}
}

@available(iOS 13.0, *)
public class VibrancyView: UIVisualEffectView {
public init(blurStyle blur: UIBlurEffect.Style = UIBlurEffect.Style.regular,
vibrancyStyle vibrancy: UIVibrancyEffectStyle = .fill,
closure: () -> UIView) {
super.init(effect: UIVibrancyEffect(blurEffect: UIBlurEffect(style: blur),
style: vibrancy))

contentView.embed {
closure()
}
}

required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
6 changes: 1 addition & 5 deletions Sources/SwiftUIKit/Views/LoadingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ import UIKit
public class LoadingView: UIActivityIndicatorView {
public init(forStyle style: UIActivityIndicatorView.Style? = nil) {
guard let style = style else {
if #available(iOS 13.0, *) {
super.init(style: .medium)
} else {
super.init(style: .white)
}
super.init(style: .white)
return
}

Expand Down

0 comments on commit d5d0e76

Please sign in to comment.