mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-06 04:24:29 +00:00
Rebranded the app for iOS
This commit is contained in:
committed by
Konstantin Pastbin
parent
51b669cfd1
commit
d4e1d53c40
@@ -0,0 +1,28 @@
|
||||
import SwiftUI
|
||||
|
||||
struct StatisticDetailView: View {
|
||||
private let title: String
|
||||
private let subtitle: String
|
||||
|
||||
init(title: String, subtitle: String) {
|
||||
self.title = title
|
||||
self.subtitle = subtitle
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading) {
|
||||
Text(title)
|
||||
.contentTransition(.numericText())
|
||||
.font(.system(size: 14, weight: .bold).monospacedDigit())
|
||||
.minimumScaleFactor(0.5)
|
||||
.lineLimit(1)
|
||||
.foregroundStyle(.white)
|
||||
Text(subtitle)
|
||||
.font(.system(size: 10))
|
||||
.minimumScaleFactor(0.5)
|
||||
.lineLimit(2)
|
||||
.multilineTextAlignment(.center)
|
||||
.foregroundStyle(.white)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user