Skip to content

Commit

Permalink
Merge pull request #74 from alexandrereol/main
Browse files Browse the repository at this point in the history
Add visionsOS compatibility
  • Loading branch information
SvenTiigi authored Jan 18, 2024
2 parents 360b7da + 426d245 commit 8ed0f88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// swift-tools-version:5.3
// swift-tools-version:5.9

import PackageDescription

let package = Package(
name: "WhatsNewKit",
platforms: [
.iOS(.v13),
.macOS(.v11)
.macOS(.v11),
.visionOS(.v1)
],
products: [
.library(
Expand Down
2 changes: 1 addition & 1 deletion Sources/View/WhatsNewView+FeaturesPadding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion Sources/View/WhatsNewView+FooterPadding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8ed0f88

Please sign in to comment.