mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 14:43:43 +00:00
Rebranded the app for iOS
This commit is contained in:
committed by
Konstantin Pastbin
parent
51b669cfd1
commit
d4e1d53c40
@@ -0,0 +1,26 @@
|
||||
import WidgetKit
|
||||
import SwiftUI
|
||||
|
||||
struct TrackRecordingLiveActivityConfiguration: Widget {
|
||||
@Environment(\.colorScheme) private var colorScheme
|
||||
|
||||
var body: some WidgetConfiguration {
|
||||
ActivityConfiguration(for: TrackRecordingLiveActivityAttributes.self) { context in
|
||||
TrackRecordingLiveActivityView(state: context.state)
|
||||
} dynamicIsland: { context in
|
||||
DynamicIsland {
|
||||
DynamicIslandExpandedRegion(.center) {
|
||||
// TODO: Implement the expanded view
|
||||
}
|
||||
} compactLeading: {
|
||||
AppLogo()
|
||||
} compactTrailing: {
|
||||
StatisticValueView(context.state.duration.value)
|
||||
} minimal: {
|
||||
// TODO: Implement the minimal view
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user