Updated the Sample app and Widget targets in the Xcode project to make the app works for visionOS.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user