commit 4d62c10e789e1057ef341e5a746bc75b17c8f2a0
parent 506b6cb55531ded8945a03b72a91af29da8f4507
Author: Michael Camilleri <[email protected]>
Date: Mon, 19 Oct 2026 16:16:05 +0900
Welcome new users and ask for location and notifications at once
Location was asked for only when the first report was made, and
'Always' only when the user turned on prompts. Reporting is the app's
purpose and every report records its location, so a report made before
the user had decided, or that went without, looked like the app not
working.
This commit adds a welcome screen, shown the first time the app is
opened, that says what Reportage does and why it will ask to use the
user's location and send notifications. Continue asks for location as
'Always', which iOS shows as its usual 'While Using' prompt and grants
provisionally, then for notifications, and allowing notifications
turns on random prompts. The welcome is skipped when both permissions
have already been decided, as they are for someone updating.
Settings no longer explains and asks for the upgrade to 'Always' when
prompts are turned on. Instead, while prompts are on and location isn't
'Always', the Prompts section says Instant Report will save reports
without a location and links to Settings. The 'Always' prompt's text
now covers every report rather than only those from a notification,
and the design note describes the new order and the 'Always' session
that background captures hold.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat
| M | Notes/Design.md | | | 34 | ++++++++++++++++++++-------------- |
| M | Reportage.xcodeproj/project.pbxproj | | | 8 | ++++++++ |
| M | Reportage/Info.plist | | | 2 | +- |
| M | Reportage/Services/AppBadge.swift | | | 4 | ++-- |
| A | Reportage/Services/FirstLaunch.swift | | | 72 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| M | Reportage/Views/RootView.swift | | | 5 | +++++ |
| M | Reportage/Views/Settings/SettingsView.swift | | | 46 | +++++++++++++++++++++------------------------- |
| A | Reportage/Views/WelcomeView.swift | | | 108 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| M | Shared/Capture/ContextCapture.swift | | | 12 | ------------ |
| M | project.yml | | | 2 | +- |
10 files changed, 238 insertions(+), 55 deletions(-)
diff --git a/Notes/Design.md b/Notes/Design.md
@@ -543,13 +543,22 @@ Category `prompt`: when the prompt first fired. If a survey or Settings is already open, it waits until that closes. -Location for background actions requires "Always" authorisation. Without it, -passive reports logged from a notification get no location. The app asks for -"When In Use" first and explains the trade-off before asking to upgrade. - -Turning prompts on asks for notification permission (alert, sound and badge) -and, once it's granted, explains why Instant Report wants 'Always' location -before asking for it. +Location for background actions requires 'Always' authorisation, and the +capture holds an 'Always' session when it's granted: a 'While Using' session +doesn't cover an app launched in the background, and Core Location withholds +its updates. Without 'Always', passive reports logged from a notification get +no location, and the Prompts section of Settings says so, with a link to +Settings. + +The first time the app is opened, a welcome screen says what Reportage does +and why it will ask for location and notifications; Continue asks for +location, then notifications (alert, sound and badge). Reporting is the app's purpose and every report +records its location, so a report made before the user had decided, or that +went without, would look like the app not working. Location is asked for as +'Always', which iOS shows as the usual 'While Using' prompt; choosing that +grants 'Always' provisionally, and iOS confirms it with the user later. +Allowing notifications turns on random prompts. If they weren't allowed then, +turning prompts on in Settings asks again. ## Passive Reports and the Watch @@ -612,16 +621,13 @@ denied provider leaves its section `nil`. It never blocks saving the report. `CLLocationUpdate.liveUpdates()`, taking the first fix within an accuracy threshold (50 m), then falling back to the best fix within the budget, less -3 seconds kept for looking up the address. Holding a `CLServiceSession` asks -for 'While Using' authorisation the first time a survey opens. Capture starts +3 seconds kept for looking up the address. Authorisation is asked for when +the app is first opened (see [Notification actions](#notification-actions)); +holding a `CLServiceSession` would otherwise ask for 'While Using' the first +time a survey opens. Capture starts when the survey opens, so the fix describes the moment of the report, and a place answer records the fix as where it was given. -'Always' is requested later, as an upgrade, when the user turns on prompts -(`LocationAuthorization.requestAlways()`): Instant Report records location -without opening the app, and asking before any feature needs it would leave -the request unexplained (and invite App Review questions). - Addresses come from MapKit as `MKMapItem`s; the placemark keeps Reporter's fields where they still exist, plus the language, the region code, the city with its region and the full and short addresses. Reverse geocoding uses
diff --git a/Reportage.xcodeproj/project.pbxproj b/Reportage.xcodeproj/project.pbxproj
@@ -14,6 +14,7 @@
123470F9E3205890526D3A89 /* EventLog.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFF717BC324925C231BD3378 /* EventLog.swift */; };
16CDDFE25EBB07C0EA9AC5AA /* DiagnosticsSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87545A7909A370C668314DFF /* DiagnosticsSection.swift */; };
16D2FB106A2C588BAAB3EB06 /* PromptSchedulerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2425CB4D9B12D422467F6FD7 /* PromptSchedulerTests.swift */; };
+ 226A38BE6D7171D892EA35B3 /* FirstLaunch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CE9EDC8448889EB9D4D358E /* FirstLaunch.swift */; };
22EA393B887791E20B6FE625 /* PlacePickerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B6C4141A26EED99B1F03FBE /* PlacePickerTests.swift */; };
25BC9F95DC40E31B1E4C6FBA /* Token.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3BE62142CCC4A791F05163A /* Token.swift */; };
28D2CDAAB0777233D4465A83 /* ReporterArchiveTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 487F88C880B5DE69964C6A37 /* ReporterArchiveTests.swift */; };
@@ -69,6 +70,7 @@
D9A8839569734F5CEAC43A44 /* TokenAnswer.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF998798373C9CCAD65999B3 /* TokenAnswer.swift */; };
DF632654B427EE32C44C6F78 /* Context.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F200EBD30BC12D2313E6C6F /* Context.swift */; };
E0137FEEBF13F5D14C07656F /* ReportageExport.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7F1ECC4B803EFFD88FFF52B /* ReportageExport.swift */; };
+ E2D35546E39153308E9880B1 /* WelcomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92BFA1E8F26662DCF828DD5C /* WelcomeView.swift */; };
E64BB44903A15E99126E73E5 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81BA515BEA1B0B68CE0D1326 /* SettingsView.swift */; };
E68EF6274FD2F6D54D49F5BD /* ReporterImporterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 917C4579342FAC42F6C616FC /* ReporterImporterTests.swift */; };
E8C13757BF3E2C8384F104A1 /* AppleWeather.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC2D996880DB9C269F0203D5 /* AppleWeather.swift */; };
@@ -127,6 +129,7 @@
798E1DE82BD53EC5BEBA76B7 /* ReporterImportPlan.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReporterImportPlan.swift; sourceTree = "<group>"; };
7ABE75DB46245AFDE8A44A48 /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = "<group>"; };
7CE5E7D863F9BD3DF363AA9A /* AppBadge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppBadge.swift; sourceTree = "<group>"; };
+ 7CE9EDC8448889EB9D4D358E /* FirstLaunch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirstLaunch.swift; sourceTree = "<group>"; };
7DB6FF151DCEBC3913131834 /* ReportageExportTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReportageExportTests.swift; sourceTree = "<group>"; };
7FD562C0C92C1D59881C771E /* ReporterImportPlanTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReporterImportPlanTests.swift; sourceTree = "<group>"; };
81BA515BEA1B0B68CE0D1326 /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
@@ -137,6 +140,7 @@
878CE0FF7A2598F4197E8E61 /* Environment.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Environment.swift; sourceTree = "<group>"; };
8E609FFCB918B4EF9BFCC018 /* DisplayRule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DisplayRule.swift; sourceTree = "<group>"; };
917C4579342FAC42F6C616FC /* ReporterImporterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReporterImporterTests.swift; sourceTree = "<group>"; };
+ 92BFA1E8F26662DCF828DD5C /* WelcomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeView.swift; sourceTree = "<group>"; };
94DB0CA378AEF82B3CB27B67 /* DefaultQuestions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DefaultQuestions.swift; sourceTree = "<group>"; };
9856D1F8123B9CAD7D39071D /* PlaceAnswerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlaceAnswerView.swift; sourceTree = "<group>"; };
9F3237323A968FA629020DA9 /* ContextCapture.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContextCapture.swift; sourceTree = "<group>"; };
@@ -281,6 +285,7 @@
isa = PBXGroup;
children = (
7CE5E7D863F9BD3DF363AA9A /* AppBadge.swift */,
+ 7CE9EDC8448889EB9D4D358E /* FirstLaunch.swift */,
AD85758A0521ED681067B90F /* Export */,
96D6D46E008E39350B203328 /* Narrative */,
580063E6A7AE05D5C6C16830 /* Places */,
@@ -395,6 +400,7 @@
878CE0FF7A2598F4197E8E61 /* Environment.swift */,
5591E042089D038B59B26E9F /* ReportKind+Title.swift */,
A70B6E5B7C07D2CE13E9E771 /* RootView.swift */,
+ 92BFA1E8F26662DCF828DD5C /* WelcomeView.swift */,
01DE4634BAAD579B60FBA5ED /* Home */,
2AA377CB45537E6D2364ABF2 /* Report */,
B74082E720FBA1EF05FE11E4 /* Settings */,
@@ -564,6 +570,7 @@
770B4C77FABB2A7A0B2C5E3A /* EntryDraft.swift in Sources */,
C71E99843CC3D9DE4468B36B /* Environment.swift in Sources */,
123470F9E3205890526D3A89 /* EventLog.swift in Sources */,
+ 226A38BE6D7171D892EA35B3 /* FirstLaunch.swift in Sources */,
83E954F0DAC9719D2AA02111 /* HomeView.swift in Sources */,
6E21E729F89178EBD019980E /* InlineCasing.swift in Sources */,
3244B8439B5E4F79FF84C156 /* JSONSlicer.swift in Sources */,
@@ -605,6 +612,7 @@
25BC9F95DC40E31B1E4C6FBA /* Token.swift in Sources */,
D9A8839569734F5CEAC43A44 /* TokenAnswer.swift in Sources */,
540CA20A213B0446B6F71885 /* Vocabulary.swift in Sources */,
+ E2D35546E39153308E9880B1 /* WelcomeView.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
diff --git a/Reportage/Info.plist b/Reportage/Info.plist
@@ -29,7 +29,7 @@ <key>LSRequiresIPhoneOS</key> <true/> <key>NSLocationAlwaysAndWhenInUseUsageDescription</key> - <string>With Always, Reportage can record where you are when you log a report from a notification without opening the app.</string> + <string>Reportage records where you are with each report, including reports you log from a notification without opening the app.</string> <key>NSLocationWhenInUseUsageDescription</key> <string>Reportage records where you are with each report, and suggests places nearby when you say where you are.</string> <key>UIBackgroundModes</key>
diff --git a/Reportage/Services/AppBadge.swift b/Reportage/Services/AppBadge.swift
@@ -3,8 +3,8 @@ import UserNotifications
/// The app icon's badge: the number of reports logged for later.
enum AppBadge {
/// Sets the badge from the store. The badge only shows once the user
- /// has allowed notifications, which Phase 3 asks for along with prompts;
- /// until then this does nothing visible.
+ /// has allowed notifications, which Reportage asks for when it's first
+ /// opened; until then this does nothing visible.
static func update(from store: ReportStore?) async {
guard let store, let count = try? await store.passiveCount() else { return }
try? await UNUserNotificationCenter.current().setBadgeCount(count)
diff --git a/Reportage/Services/FirstLaunch.swift b/Reportage/Services/FirstLaunch.swift
@@ -0,0 +1,72 @@
+import CoreLocation
+import UserNotifications
+
+/// The permissions Reportage asks for when it's first opened: location, then
+/// notifications, each after the welcome screen has said what it's for.
+///
+/// Every report records where it was made, so location is asked for at
+/// once rather than when the first report is made. It's asked for as
+/// 'Always', which iOS shows as the usual 'While Using' prompt: choosing
+/// that grants 'Always' provisionally, so Instant Report records location
+/// from a notification straight away, and iOS confirms it with the user
+/// later. Allowing notifications turns on random prompts, which are what
+/// they're for.
+enum FirstLaunch {
+ private static let key = "askedFirstLaunchPermissions"
+ private static let log = EventLog.shared.category("App")
+
+ /// Whether to welcome the user: the first time the app is opened, if
+ /// either permission is still undecided. Someone updating from a version
+ /// that asked later, with both decided, isn't welcomed.
+ @MainActor
+ static func isNeeded(defaults: UserDefaults = .standard) async -> Bool {
+ guard !defaults.bool(forKey: key) else { return false }
+ let notifications = await UNUserNotificationCenter.current().notificationSettings().authorizationStatus
+ guard CLLocationManager().authorizationStatus == .notDetermined || notifications == .notDetermined else {
+ defaults.set(true, forKey: key)
+ return false
+ }
+ return true
+ }
+
+ /// Asks for each permission still undecided, one after the other, and
+ /// remembers that they've been asked for.
+ @MainActor
+ static func ask(store: ReportStore?, defaults: UserDefaults = .standard) async {
+ await askForLocation()
+ await askForNotifications(store: store)
+ defaults.set(true, forKey: key)
+ }
+
+ /// Holds an 'Always' session until the prompt is answered, so the
+ /// notifications prompt doesn't come over it. Gives up after two
+ /// minutes so a prompt left on screen can't hold up the next one.
+ private static func askForLocation() async {
+ guard CLLocationManager().authorizationStatus == .notDetermined else { return }
+ let session = CLServiceSession(authorization: .always)
+ defer { session.invalidate() }
+ _ = await withTimeout(.seconds(120)) { () async -> Bool? in
+ do {
+ for try await _ in session.diagnostics
+ where CLLocationManager().authorizationStatus != .notDetermined {
+ return true
+ }
+ } catch {}
+ return nil
+ }
+ log.info("Asked for location: status \(CLLocationManager().authorizationStatus.rawValue)")
+ }
+
+ private static func askForNotifications(store: ReportStore?) async {
+ let center = UNUserNotificationCenter.current()
+ guard await center.notificationSettings().authorizationStatus == .notDetermined else { return }
+ let granted = (try? await center.requestAuthorization(options: [.alert, .sound, .badge])) ?? false
+ log.info("Asked for notifications: \(granted ? "allowed" : "not allowed")")
+ guard granted else { return }
+ var settings = PromptSettings.load()
+ settings.isEnabled = true
+ settings.save()
+ await PromptScheduler().refresh()
+ await AppBadge.update(from: store)
+ }
+}
diff --git a/Reportage/Views/RootView.swift b/Reportage/Views/RootView.swift
@@ -5,6 +5,7 @@ import SwiftUI
struct RootView: View {
@Environment(PromptInbox.self) private var inbox: PromptInbox?
@State private var tab = RootTab.timeline
+ @State private var isWelcoming = false
var body: some View {
TabView(selection: $tab) {
@@ -19,6 +20,10 @@ struct RootView: View {
.onChange(of: inbox?.survey?.id, initial: true) {
if inbox?.survey != nil { tab = .timeline }
}
+ .task { isWelcoming = await FirstLaunch.isNeeded() }
+ .fullScreenCover(isPresented: $isWelcoming) {
+ WelcomeView { isWelcoming = false }
+ }
}
}
diff --git a/Reportage/Views/Settings/SettingsView.swift b/Reportage/Views/Settings/SettingsView.swift
@@ -8,9 +8,7 @@ struct SettingsView: View {
@Environment(\.scenePhase) private var scenePhase
@State private var settings = PromptSettings.load()
@State private var notifications: UNAuthorizationStatus?
- @State private var isExplainingLocation = false
- /// Held while iOS asks to upgrade location to 'Always'.
- @State private var locationSession: CLServiceSession?
+ @State private var location: CLAuthorizationStatus?
/// Counts finished reschedules, so the debug list of pending
/// notifications reloads after each.
@State private var scheduleGeneration = 0
@@ -88,10 +86,13 @@ struct SettingsView: View {
.foregroundStyle(Theme.ink)
.toolbar(.hidden, for: .navigationBar)
}
- .task { await checkNotifications() }
+ .task { await checkPermissions() }
.onChange(of: scenePhase) { _, phase in
- if phase == .active { Task { await checkNotifications() } }
+ if phase == .active { Task { await checkPermissions() } }
}
+ // Prompts may have been turned on when the app was first opened,
+ // after this view was made.
+ .onAppear { settings = PromptSettings.load() }
.onChange(of: settings) { _, settings in
settings.save()
Task {
@@ -99,15 +100,6 @@ struct SettingsView: View {
scheduleGeneration += 1
}
}
- .alert("Record Location from Notifications?", isPresented: $isExplainingLocation) {
- Button("Continue") { locationSession = LocationAuthorization.requestAlways() }
- Button("Not Now", role: .cancel) {}
- } message: {
- Text(
- "Instant Report records a report from a notification without opening Reportage. To include where you are, Reportage needs location access set to Always. Without it, these reports are saved without a location."
- )
- }
- .onDisappear { locationSession?.invalidate() }
}
@ViewBuilder
@@ -119,14 +111,23 @@ struct SettingsView: View {
Link("Open Settings", destination: url)
}
}
+ } else if settings.isEnabled, let location, location != .authorizedAlways {
+ VStack(alignment: .leading, spacing: Theme.lineGap) {
+ Text(
+ "Instant Report saves reports from a notification without a location unless location access for Reportage is set to Always."
+ )
+ if let url = URL(string: UIApplication.openSettingsURLString) {
+ Link("Open Settings", destination: url)
+ }
+ }
} else {
Text("Reportage sends a notification at random times each day, asking for a report.")
}
}
- /// Turning prompts on asks for notifications first (with the badge,
- /// which counts instant reports), then offers the upgrade to 'Always'
- /// location that the Instant Report action needs.
+ /// Turning prompts on asks for notifications (with the badge, which
+ /// counts instant reports) if they weren't allowed when the app was
+ /// first opened.
private var promptsEnabled: Binding<Bool> {
Binding(
get: { settings.isEnabled },
@@ -148,20 +149,15 @@ struct SettingsView: View {
private func turnOnPrompts() async {
let center = UNUserNotificationCenter.current()
let granted = (try? await center.requestAuthorization(options: [.alert, .sound, .badge])) ?? false
- await checkNotifications()
+ await checkPermissions()
guard granted else { return }
settings.isEnabled = true
await AppBadge.update(from: store)
- switch CLLocationManager().authorizationStatus {
- case .notDetermined, .authorizedWhenInUse:
- isExplainingLocation = true
- default:
- break
- }
}
- private func checkNotifications() async {
+ private func checkPermissions() async {
notifications = await UNUserNotificationCenter.current().notificationSettings().authorizationStatus
+ location = CLLocationManager().authorizationStatus
}
}
diff --git a/Reportage/Views/WelcomeView.swift b/Reportage/Views/WelcomeView.swift
@@ -0,0 +1,108 @@
+import SwiftUI
+
+/// Shown the first time the app is opened: what Reportage does, and why it's
+/// about to ask for location and notifications. Continue asks for each in
+/// turn and closes once both are answered.
+struct WelcomeView: View {
+ @Environment(\.reportStore) private var store
+ @State private var isAsking = false
+ let onFinish: () -> Void
+
+ var body: some View {
+ VStack(spacing: 0) {
+ ScrollView {
+ WelcomeContent()
+ .padding(.horizontal, Theme.margin)
+ .padding(.top, Theme.pageTop)
+ .padding(.bottom, Theme.blockGap)
+ }
+ .scrollBounceBehavior(.basedOnSize)
+ Button {
+ Task { await askAndFinish() }
+ } label: {
+ Text("Continue")
+ .font(.body.weight(.semibold))
+ .foregroundStyle(Theme.onAccent)
+ .frame(maxWidth: .infinity, minHeight: 52)
+ .background(Theme.accent, in: .capsule)
+ }
+ .buttonStyle(.plain)
+ .disabled(isAsking)
+ .padding(.horizontal, Theme.margin)
+ .padding(.vertical, 12)
+ }
+ .background(Theme.paper)
+ .foregroundStyle(Theme.ink)
+ }
+
+ private func askAndFinish() async {
+ isAsking = true
+ await FirstLaunch.ask(store: store)
+ onFinish()
+ }
+}
+
+/// The welcome's text, apart from its button so it can be rendered on its
+/// own.
+struct WelcomeContent: View {
+ var body: some View {
+ VStack(alignment: .leading, spacing: Theme.promptGap) {
+ Text("Reportage\(Text(".").foregroundStyle(Theme.mark))", comment: "The app's name on the welcome screen, with a coloured full stop")
+ .screenTitle()
+ .accessibilityLabel(Text("Reportage"))
+ Text(
+ "At random times through the day, Reportage asks what you're up to. Your answers, and where and when you gave them, become a record of your days."
+ )
+ .font(Theme.serif(.title3))
+ .fixedSize(horizontal: false, vertical: true)
+ VStack(alignment: .leading, spacing: Theme.blockGap) {
+ Text("Reportage will ask to use")
+ .eyebrow()
+ WelcomePermission(
+ title: "Your Location",
+ systemImage: "location",
+ detail:
+ "Each report records where you were and the weather there, including reports you log from a notification without opening the app."
+ )
+ WelcomePermission(
+ title: "Notifications",
+ systemImage: "bell",
+ detail:
+ "Prompts come as notifications. You can choose how many come each day, and between which hours, in the Settings tab."
+ )
+ }
+ Text("You can change either permission at any time in the Settings app.")
+ .font(.footnote)
+ .foregroundStyle(Theme.muted)
+ }
+ .frame(maxWidth: .infinity, alignment: .leading)
+ }
+}
+
+/// One permission: what it is and what Reportage uses it for.
+private struct WelcomePermission: View {
+ let title: LocalizedStringKey
+ let systemImage: String
+ let detail: LocalizedStringKey
+
+ var body: some View {
+ HStack(alignment: .firstTextBaseline, spacing: Theme.iconGap) {
+ Image(systemName: systemImage)
+ .foregroundStyle(Theme.accent)
+ .frame(width: 24)
+ .accessibilityHidden(true)
+ VStack(alignment: .leading, spacing: Theme.lineGap) {
+ Text(title)
+ .font(.headline)
+ Text(detail)
+ .font(.subheadline)
+ .foregroundStyle(Theme.muted)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+ }
+ }
+}
+
+#Preview {
+ WelcomeView {}
+}
diff --git a/Shared/Capture/ContextCapture.swift b/Shared/Capture/ContextCapture.swift
@@ -352,15 +352,3 @@ extension Placemark {
)
}
}
-
-/// Location authorisation beyond 'While Using'.
-enum LocationAuthorization {
- /// Asks to upgrade to 'Always'. iOS asks for this only after 'While
- /// Using' has been granted. Phase 3 calls it when the user turns on
- /// prompts, because Instant Report records location from a notification
- /// without opening the app; asking before then would leave the request
- /// unexplained.
- static func requestAlways() -> CLServiceSession {
- CLServiceSession(authorization: .always)
- }
-}
diff --git a/project.yml b/project.yml
@@ -39,7 +39,7 @@ targets:
UIBackgroundModes:
- fetch
NSLocationWhenInUseUsageDescription: Reportage records where you are with each report, and suggests places nearby when you say where you are.
- NSLocationAlwaysAndWhenInUseUsageDescription: With Always, Reportage can record where you are when you log a report from a notification without opening the app.
+ NSLocationAlwaysAndWhenInUseUsageDescription: Reportage records where you are with each report, including reports you log from a notification without opening the app.
UILaunchScreen: {}
UISupportedInterfaceOrientations:
- UIInterfaceOrientationPortrait