Skip to content

Commit 5dbca64

Browse files
committed
Fixed tv target.
1 parent 08ed80f commit 5dbca64

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Example Apps/SPIndicator.xcodeproj/xcuserdata/ivanvorobei.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<key>tvOS Example.xcscheme_^#shared#^_</key>
1313
<dict>
1414
<key>orderHint</key>
15-
<integer>3</integer>
15+
<integer>2</integer>
1616
</dict>
1717
<key>watchOS Example.xcscheme_^#shared#^_</key>
1818
<dict>

SPIndicator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'SPIndicator'
4-
s.version = '1.6.2'
4+
s.version = '1.6.3'
55
s.summary = 'Floating indicator, mimicrate to indicator which appear when silent mode switched. Can be present from top and bottom.'
66
s.homepage = 'https://github.com/ivanvorobei/SPIndicator'
77
s.source = { :git => 'https://github.com/ivanvorobei/SPIndicator.git', :tag => s.version }

Sources/SPIndicator/Extensions/SwiftUIExtension.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
import SwiftUI
2323

24+
#if os(iOS)
25+
2426
@available(iOS 13.0, *)
2527
@available(iOSApplicationExtension, unavailable)
2628

@@ -32,6 +34,7 @@ extension View {
3234
duration: TimeInterval = 2.0,
3335
haptic: SPIndicatorHaptic = .none
3436
) -> some View {
37+
3538
if isPresent.wrappedValue {
3639
let indicatorCompletion = indicatorView.completion
3740
let indicatorDismiss = {
@@ -84,3 +87,4 @@ extension View {
8487
}
8588

8689
}
90+
#endif

0 commit comments

Comments
 (0)