Components/Weather/Current Conditions
Current Conditions

Current Conditions

NFrom Nibware

A current-conditions hero over a sky gradient.

Weather · 20 lines · SwiftUI · iOS 17+

The actual source

CurrentConditions.swift
import SwiftUI

func wxSky(_ w: CGFloat) -> LinearGradient {
    LinearGradient(colors: [Color(red: 0.29, green: 0.50, blue: 0.85), Color(red: 0.52, green: 0.70, blue: 0.93)], startPoint: .top, endPoint: .bottom)
}

/// A current-conditions hero over a sky gradient.
struct WeatherCurrent: View {
    var body: some View {
        VStack(spacing: 2) {
            Text("San Francisco").font(.system(size: 15, weight: .semibold)).foregroundStyle(.white)
            Text("52°").font(.system(size: 68, weight: .thin)).foregroundStyle(.white)

What it needs

Self-contained SwiftUI - system materials, SF Symbols, no external dependencies. Everything it needs - tokens, sub-views, models - is carried in the copy-paste source above.