-
Notifications
You must be signed in to change notification settings - Fork 2
files core monitor weatherlocationaccesssection swift ba372d22
ventaphobia edited this page Apr 23, 2026
·
1 revision
- Area: Weather and location.
- This page records the file's current repository role, source metadata, and recent commit history.
- Review nearby tests and commit pages before changing this file.
| Field | Value |
|---|---|
| Source path | Core-Monitor/WeatherLocationAccessSection.swift |
| Wiki area | Weather and location |
| Exists in current checkout | True |
| Size | 5413 bytes |
| Binary | False |
| Line count | 152 |
| Extension | .swift |
CoreLocation, SwiftUI
| Kind | Name | Line |
|---|---|---|
| struct | WeatherLocationAccessSection |
3 |
| struct | WeatherLocationActionButtonStyle |
134 |
| func | makeBody |
136 |
| Commit | Date | Subject |
|---|---|---|
44eb999 |
2026-04-16 | Harden touch bar customization and weather fallback |
311dc52 |
2026-04-15 | Refine first-run onboarding and weather permissions |
- Prefer focused changes that respect the ownership described above.
- If this file touches helper trust, SMC writes, startup, or permissions, update the relevant support docs and tests.
- If this file is generated or an asset manifest, verify the producing workflow instead of hand-editing generated payloads.
import SwiftUI
import CoreLocation
struct WeatherLocationAccessSection: View {
@ObservedObject var controller: WeatherLocationAccessController
@Environment(\.openURL) private var openURL
var body: some View {
VStack(alignment: .leading, spacing: 10) {
HStack(spacing: 10) {
Image(systemName: symbolName)
.font(.system(size: 13, weight: .semibold))
.foregroundStyle(accentColor)
.frame(width: 18, height: 18)
Text("Location Access")
.font(.system(size: 12, weight: .semibold))
.foregroundStyle(.primary)
Text(badgeTitle.uppercased())
.font(.system(size: 9, weight: .bold))
.foregroundStyle(accentColor)
.padding(.horizontal, 7)
.padding(.vertical, 4)
.background(accentColor.opacity(0.14))
.clipShape(Capsule())
}
Text(detailText)
.font(.system(size: 11, weight: .medium))
.foregroundStyle(.secondary)
.lineSpacing(3)
HStack(spacing: 8) {
if let requestTitle {
Button(requestTitle) {
controller.requestAccess()
}
.buttonStyle(WeatherLocationActionButtonStyle())
}
- Home
- Start Here
- Product Overview
- Runtime Architecture
- Monitoring Pipeline
- Fan Control
- Privileged Helper
- Touch Bar
- Release Automation
- Security Model
- File Index (279)
- Every Commit (401)
- Chronological Change Log
- Removed Parts
- All Deleted Paths
- Branches And Tags
- Wiki Manifest
- Start Here
- Product Overview
- Source Map
- Runtime Architecture
- App Startup And Lifecycle
- Dashboard Architecture
- Menu Bar Architecture
- Monitoring Pipeline
- Snapshot Trends And Freshness
- CPU GPU Memory Disk Network
- Battery Power And Thermals
- SMC And Apple Silicon
- Fan Control
- Custom Fan Curves
- Privileged Helper
- XPC Trust Boundary
- Helper Diagnostics
- Touch Bar Architecture
- Touch Bar Customization
- Weather And Location
- Privacy And Permissions
- Onboarding And Help
- Legacy Alerts
- Kernel Panic Weird Mode