Skip to content

Commit

Permalink
Updated compiler directive for visionOS platform
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenTiigi committed Jan 28, 2024
1 parent 3b94b3b commit 91103be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/View/WhatsNewView+FeaturesPadding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extension WhatsNewView {
/// The WhatsNewView FeaturesPadding ViewModifier
struct FeaturesPadding {

#if os(iOS)
#if os(iOS) || os(visionOS)
/// The Horizontal SizeClass
@Environment(\.horizontalSizeClass)
private var horizontalSizeClass
Expand All @@ -30,7 +30,7 @@ extension WhatsNewView.FeaturesPadding: ViewModifier {
func body(
content: Content
) -> some View {
#if os(macOS) || os(visionOS)
#if os(macOS)
content.padding(.horizontal)
#else
if self.horizontalSizeClass == .regular {
Expand Down
4 changes: 2 additions & 2 deletions Sources/View/WhatsNewView+FooterPadding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extension WhatsNewView {
/// The WhatsNewView FooterPadding ViewModifier
struct FooterPadding {

#if os(iOS)
#if os(iOS) || os(visionOS)
/// The Horizontal SizeClass
@Environment(\.horizontalSizeClass)
private var horizontalSizeClass
Expand All @@ -30,7 +30,7 @@ extension WhatsNewView.FooterPadding: ViewModifier {
func body(
content: Content
) -> some View {
#if os(macOS) || os(visionOS)
#if os(macOS)
content.padding(.bottom, 30)
#else
if self.horizontalSizeClass == .regular {
Expand Down

0 comments on commit 91103be

Please sign in to comment.