Use the new @Entry macro everywhere.

Fix analytics service optionality.
This commit is contained in:
Doug
2024-10-01 13:34:16 +01:00
committed by Doug
parent e0ee4be834
commit 77e4fae2fb
4 changed files with 4 additions and 45 deletions
@@ -26,13 +26,6 @@ enum TimelineGroupStyle: Hashable {
// MARK: - Environment
private struct TimelineGroupStyleKey: EnvironmentKey {
static let defaultValue = TimelineGroupStyle.single
}
extension EnvironmentValues {
var timelineGroupStyle: TimelineGroupStyle {
get { self[TimelineGroupStyleKey.self] }
set { self[TimelineGroupStyleKey.self] = newValue }
}
@Entry var timelineGroupStyle: TimelineGroupStyle = .single
}