mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Use the new @Entry macro everywhere.
Fix analytics service optionality.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user