diff --git a/Sources/ScrollKit/Examples/Spotify+PreviewScreen.swift b/Sources/ScrollKit/Examples/Spotify+PreviewScreen.swift index 42b7c384..14ec7e97 100644 --- a/Sources/ScrollKit/Examples/Spotify+PreviewScreen.swift +++ b/Sources/ScrollKit/Examples/Spotify+PreviewScreen.swift @@ -49,9 +49,7 @@ public extension Spotify { Spotify.PreviewScreenHeader( info: info, headerVisibleRatio: headerVisibleRatio - ).onTapGesture { - print("Tapped") - } + ) } var toolbarTitleView: some View { diff --git a/Sources/ScrollKit/ScrollViewHeader.swift b/Sources/ScrollKit/ScrollViewHeader.swift index 64d61466..a44f61b1 100644 --- a/Sources/ScrollKit/ScrollViewHeader.swift +++ b/Sources/ScrollKit/ScrollViewHeader.swift @@ -127,7 +127,7 @@ private extension View { } } .navigationTitle("Test") - #if canImport(UIKit) + #if os(iOS) .navigationBarTitleDisplayMode(.inline) #endif }