diff --git a/Package.swift b/Package.swift index fa03e7e..ddccf48 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.3 +// swift-tools-version:5.9 import PackageDescription @@ -6,7 +6,8 @@ let package = Package( name: "WhatsNewKit", platforms: [ .iOS(.v13), - .macOS(.v11) + .macOS(.v11), + .visionOS(.v1) ], products: [ .library( diff --git a/Sources/View/WhatsNewView+FeaturesPadding.swift b/Sources/View/WhatsNewView+FeaturesPadding.swift index 8b70ad1..8592275 100644 --- a/Sources/View/WhatsNewView+FeaturesPadding.swift +++ b/Sources/View/WhatsNewView+FeaturesPadding.swift @@ -30,7 +30,7 @@ extension WhatsNewView.FeaturesPadding: ViewModifier { func body( content: Content ) -> some View { - #if os(macOS) + #if os(macOS) || os(visionOS) content.padding(.horizontal) #else if self.horizontalSizeClass == .regular { diff --git a/Sources/View/WhatsNewView+FooterPadding.swift b/Sources/View/WhatsNewView+FooterPadding.swift index 8418714..300ecc3 100644 --- a/Sources/View/WhatsNewView+FooterPadding.swift +++ b/Sources/View/WhatsNewView+FooterPadding.swift @@ -30,7 +30,7 @@ extension WhatsNewView.FooterPadding: ViewModifier { func body( content: Content ) -> some View { - #if os(macOS) + #if os(macOS) || os(visionOS) content.padding(.bottom, 30) #else if self.horizontalSizeClass == .regular {