mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
23 lines
826 B
Swift
23 lines
826 B
Swift
import SwiftUI
|
|
|
|
struct LockScreenWeatherWidget: View {
|
|
let snapshot: LockScreenWeatherSnapshot
|
|
|
|
var body: some View {
|
|
HStack(spacing: 6) {
|
|
Image(systemName: snapshot.symbolName)
|
|
.font(.system(size: 26, weight: .medium))
|
|
.symbolRenderingMode(.hierarchical)
|
|
Text(snapshot.temperatureText)
|
|
.font(.system(size: 24, weight: .semibold, design: .rounded))
|
|
.kerning(-0.4)
|
|
}
|
|
.foregroundStyle(.white)
|
|
.padding(.horizontal, 10)
|
|
.padding(.vertical, 6)
|
|
.background(Color.clear)
|
|
.shadow(color: .black.opacity(0.35), radius: 8, x: 0, y: 3)
|
|
.accessibilityElement(children: .ignore)
|
|
.accessibilityLabel("Weather: \(snapshot.description) \(snapshot.temperatureText)")
|
|
}
|
|
}
|