From c90ae323d961005485764f6fd52fe51fc3fc981f Mon Sep 17 00:00:00 2001 From: Sameer Nawaz Date: Mon, 19 Apr 2021 22:29:59 +0530 Subject: [PATCH] Update podspec and add iOS 13.0 dep --- FortuneWheel.podspec | 2 +- Sources/FortuneWheel/FortuneWheel.swift | 1 + Sources/FortuneWheel/FortuneWheelViewModel.swift | 1 + Sources/FortuneWheel/SpinWheel/SpinWheelCell.swift | 1 + Sources/FortuneWheel/SpinWheel/SpinWheelView.swift | 4 ++++ 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/FortuneWheel.podspec b/FortuneWheel.podspec index 04b56ff..5e29f81 100644 --- a/FortuneWheel.podspec +++ b/FortuneWheel.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'FortuneWheel' - s.version = '0.1.2' + s.version = '0.1.4' s.summary = 'Fortune spinning wheel library built using SwiftUI, supports dynamic content' # This description is used to generate tags and improve search results. diff --git a/Sources/FortuneWheel/FortuneWheel.swift b/Sources/FortuneWheel/FortuneWheel.swift index bd378a5..78dd51a 100644 --- a/Sources/FortuneWheel/FortuneWheel.swift +++ b/Sources/FortuneWheel/FortuneWheel.swift @@ -57,6 +57,7 @@ public struct FortuneWheel: View { } } +@available(iOS 13.0, *) extension Color { static let spin_wheel_color: [Color] = [Color(hex: "FBE488"), Color(hex: "75AB53"), Color(hex: "D1DC59"), diff --git a/Sources/FortuneWheel/FortuneWheelViewModel.swift b/Sources/FortuneWheel/FortuneWheelViewModel.swift index ada6b30..d37a6e6 100644 --- a/Sources/FortuneWheel/FortuneWheelViewModel.swift +++ b/Sources/FortuneWheel/FortuneWheelViewModel.swift @@ -7,6 +7,7 @@ import SwiftUI +@available(iOS 13.0, *) class FortuneWheelViewModel: ObservableObject { var titles: [String] diff --git a/Sources/FortuneWheel/SpinWheel/SpinWheelCell.swift b/Sources/FortuneWheel/SpinWheel/SpinWheelCell.swift index 67ac376..dddce84 100644 --- a/Sources/FortuneWheel/SpinWheel/SpinWheelCell.swift +++ b/Sources/FortuneWheel/SpinWheel/SpinWheelCell.swift @@ -7,6 +7,7 @@ import SwiftUI +@available(iOS 13.0, *) struct SpinWheelCell: Shape { let startAngle: Double, endAngle: Double diff --git a/Sources/FortuneWheel/SpinWheel/SpinWheelView.swift b/Sources/FortuneWheel/SpinWheel/SpinWheelView.swift index 4bdd666..96b2556 100644 --- a/Sources/FortuneWheel/SpinWheel/SpinWheelView.swift +++ b/Sources/FortuneWheel/SpinWheel/SpinWheelView.swift @@ -7,6 +7,7 @@ import SwiftUI +@available(iOS 13.0, *) struct Triangle: Shape { public func path(in rect: CGRect) -> Path { var path = Path() @@ -19,6 +20,7 @@ struct Triangle: Shape { } } +@available(iOS 13.0, *) struct SpinWheelPointer: View { var pointerColor: Color var body: some View { @@ -29,6 +31,7 @@ struct SpinWheelPointer: View { } } +@available(iOS 13.0, *) struct SpinWheelBolt: View { var body: some View { ZStack { @@ -41,6 +44,7 @@ struct SpinWheelBolt: View { } } +@available(iOS 13.0, *) struct SpinWheelView: View { var data: [Double], labels: [String]