Skip to content

Commit

Permalink
Update podspec and add iOS 13.0 dep
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersyd committed Apr 19, 2021
1 parent 185ef40 commit c90ae32
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion FortuneWheel.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions Sources/FortuneWheel/FortuneWheel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
1 change: 1 addition & 0 deletions Sources/FortuneWheel/FortuneWheelViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import SwiftUI

@available(iOS 13.0, *)
class FortuneWheelViewModel: ObservableObject {

var titles: [String]
Expand Down
1 change: 1 addition & 0 deletions Sources/FortuneWheel/SpinWheel/SpinWheelCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import SwiftUI

@available(iOS 13.0, *)
struct SpinWheelCell: Shape {

let startAngle: Double, endAngle: Double
Expand Down
4 changes: 4 additions & 0 deletions Sources/FortuneWheel/SpinWheel/SpinWheelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import SwiftUI

@available(iOS 13.0, *)
struct Triangle: Shape {
public func path(in rect: CGRect) -> Path {
var path = Path()
Expand All @@ -19,6 +20,7 @@ struct Triangle: Shape {
}
}

@available(iOS 13.0, *)
struct SpinWheelPointer: View {
var pointerColor: Color
var body: some View {
Expand All @@ -29,6 +31,7 @@ struct SpinWheelPointer: View {
}
}

@available(iOS 13.0, *)
struct SpinWheelBolt: View {
var body: some View {
ZStack {
Expand All @@ -41,6 +44,7 @@ struct SpinWheelBolt: View {
}
}

@available(iOS 13.0, *)
struct SpinWheelView: View {

var data: [Double], labels: [String]
Expand Down

0 comments on commit c90ae32

Please sign in to comment.