Updated the Sample app and Widget targets in the Xcode project to make the app works for visionOS.

This commit is contained in:
2026-07-09 19:31:44 +02:00
parent 80bffd7aae
commit 1e11c4ae5a
4 changed files with 86 additions and 56 deletions
@@ -45,10 +45,14 @@ public struct NotificationLabelStyle: LabelStyle {
}
.padding(.vertical, Constant.Padding.vertical)
.padding(.horizontal, Constant.Padding.horizontal)
#if os(visionOS)
.glassBackgroundEffect(in: .capsule)
#else
.glassEffect(
.regular,
in: .capsule
)
#endif
}
}