commit e5421790b550a82552d666dcaed56d9202cec979
parent 770a692202248eb87736714b95853b6c8425d1ce
Author: Michael Camilleri <[email protected]>
Date: Tue, 20 Oct 2026 15:48:37 +0900
Add temporary icon
Diffstat
| M | Reportage.xcodeproj/project.pbxproj | | | 12 | ++++++++++++ |
| A | Reportage/Assets.xcassets/AboutIcon.imageset/[email protected] | | | 0 | |
| A | Reportage/Assets.xcassets/AboutIcon.imageset/[email protected] | | | 0 | |
| A | Reportage/Assets.xcassets/AboutIcon.imageset/[email protected] | | | 0 | |
| A | Reportage/Assets.xcassets/AboutIcon.imageset/[email protected] | | | 0 | |
| A | Reportage/Assets.xcassets/AboutIcon.imageset/Contents.json | | | 54 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | Reportage/Assets.xcassets/AppIcon.appiconset/AppIcon-Dark.png | | | 0 | |
| A | Reportage/Assets.xcassets/AppIcon.appiconset/AppIcon-Tinted.png | | | 0 | |
| A | Reportage/Assets.xcassets/AppIcon.appiconset/AppIcon.png | | | 0 | |
| A | Reportage/Assets.xcassets/AppIcon.appiconset/Contents.json | | | 38 | ++++++++++++++++++++++++++++++++++++++ |
| A | Reportage/Assets.xcassets/Contents.json | | | 6 | ++++++ |
| M | Reportage/Views/Settings/AboutView.swift | | | 23 | ++++++++++++----------- |
| M | project.yml | | | 1 | + |
13 files changed, 123 insertions(+), 11 deletions(-)
diff --git a/Reportage.xcodeproj/project.pbxproj b/Reportage.xcodeproj/project.pbxproj
@@ -22,6 +22,7 @@
25BC9F95DC40E31B1E4C6FBA /* Token.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3BE62142CCC4A791F05163A /* Token.swift */; };
275A9497C40065F5C77AE473 /* InstantReportLogger.swift in Sources */ = {isa = PBXBuildFile; fileRef = 729C291798F29C69029E7DB7 /* InstantReportLogger.swift */; };
28D2CDAAB0777233D4465A83 /* ReporterArchiveTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 487F88C880B5DE69964C6A37 /* ReporterArchiveTests.swift */; };
+ 2A296AFDFE1BA82A3447743D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0A246867F8FAC9D3FFABD61D /* Assets.xcassets */; };
2D9BE70D44ECC3F3972DA466 /* SchemaMigrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E60426297403B9F8632343D8 /* SchemaMigrationTests.swift */; };
2EE68329C383FA1C5295ACA9 /* PlaceAnswerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9856D1F8123B9CAD7D39071D /* PlaceAnswerView.swift */; };
3175E324135E1CF5A73683D1 /* ReporterTimeZones.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7196D553D769071DB876B606 /* ReporterTimeZones.swift */; };
@@ -133,6 +134,7 @@
/* Begin PBXFileReference section */
0734316A58943D5F2E26F718 /* ReportSummaryTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReportSummaryTests.swift; sourceTree = "<group>"; };
+ 0A246867F8FAC9D3FFABD61D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
0B35602A218BE4EE399835FD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
0E6B536B922A8468136815CD /* QuestionListTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QuestionListTests.swift; sourceTree = "<group>"; };
1AD7CB7E9FF6D01BF4CE8617 /* AboutView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AboutView.swift; sourceTree = "<group>"; };
@@ -304,6 +306,7 @@
isa = PBXGroup;
children = (
633FE6CD8111A433CA9BE7EC /* AppDelegate.swift */,
+ 0A246867F8FAC9D3FFABD61D /* Assets.xcassets */,
0B35602A218BE4EE399835FD /* Info.plist */,
C17F34F71E3E13AF890DA2F3 /* Reportage.entitlements */,
383FF2C73A8FBAA2AB13D653 /* ReportageApp.swift */,
@@ -562,6 +565,7 @@
buildConfigurationList = 0BDF6397081D7F97A8283020 /* Build configuration list for PBXNativeTarget "Reportage" */;
buildPhases = (
9F7B3262E96479048C6F2F04 /* Sources */,
+ B2EBA460E48AF5E948675340 /* Resources */,
824B98170CD104FE531D301B /* Embed Foundation Extensions */,
);
buildRules = (
@@ -646,6 +650,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ B2EBA460E48AF5E948675340 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 2A296AFDFE1BA82A3447743D /* Assets.xcassets in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
diff --git a/Reportage/Assets.xcassets/AboutIcon.imageset/[email protected] b/Reportage/Assets.xcassets/AboutIcon.imageset/[email protected]
Binary files differ.
diff --git a/Reportage/Assets.xcassets/AboutIcon.imageset/[email protected] b/Reportage/Assets.xcassets/AboutIcon.imageset/[email protected]
Binary files differ.
diff --git a/Reportage/Assets.xcassets/AboutIcon.imageset/[email protected] b/Reportage/Assets.xcassets/AboutIcon.imageset/[email protected]
Binary files differ.
diff --git a/Reportage/Assets.xcassets/AboutIcon.imageset/[email protected] b/Reportage/Assets.xcassets/AboutIcon.imageset/[email protected]
Binary files differ.
diff --git a/Reportage/Assets.xcassets/AboutIcon.imageset/Contents.json b/Reportage/Assets.xcassets/AboutIcon.imageset/Contents.json
@@ -0,0 +1,54 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Reportage/Assets.xcassets/AppIcon.appiconset/AppIcon-Dark.png b/Reportage/Assets.xcassets/AppIcon.appiconset/AppIcon-Dark.png
Binary files differ.
diff --git a/Reportage/Assets.xcassets/AppIcon.appiconset/AppIcon-Tinted.png b/Reportage/Assets.xcassets/AppIcon.appiconset/AppIcon-Tinted.png
Binary files differ.
diff --git a/Reportage/Assets.xcassets/AppIcon.appiconset/AppIcon.png b/Reportage/Assets.xcassets/AppIcon.appiconset/AppIcon.png
Binary files differ.
diff --git a/Reportage/Assets.xcassets/AppIcon.appiconset/Contents.json b/Reportage/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,38 @@
+{
+ "images" : [
+ {
+ "filename" : "AppIcon.png",
+ "idiom" : "universal",
+ "platform" : "ios",
+ "size" : "1024x1024"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "AppIcon-Dark.png",
+ "idiom" : "universal",
+ "platform" : "ios",
+ "size" : "1024x1024"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "tinted"
+ }
+ ],
+ "filename" : "AppIcon-Tinted.png",
+ "idiom" : "universal",
+ "platform" : "ios",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Reportage/Assets.xcassets/Contents.json b/Reportage/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Reportage/Views/Settings/AboutView.swift b/Reportage/Views/Settings/AboutView.swift
@@ -59,7 +59,7 @@ struct AboutHeader: View {
var body: some View {
VStack(spacing: 8) {
- PlaceholderIcon()
+ AppIconImage()
.padding(.bottom, 4)
Text("Reportage\(Text(".").foregroundStyle(Theme.mark))", comment: "The app's name on the About screen, with a coloured full stop")
.font(Theme.serif(.title, weight: .medium))
@@ -97,18 +97,19 @@ private struct Credit: View {
}
}
-/// Stands in for the app icon until there is one: the wordmark's initial
-/// and full stop on accent.
-private struct PlaceholderIcon: View {
+/// The app icon: the wordmark's 'e.' zoomed in until the full stop leads.
+/// It's a separate image from AppIcon, which apps can't load, with an
+/// opaque dark version where the dark app icon is transparent. Its paper
+/// matches the screen's, so a hairline marks its edge.
+private struct AppIconImage: View {
+ private let shape = RoundedRectangle(cornerRadius: 22, style: .continuous)
+
var body: some View {
- RoundedRectangle(cornerRadius: 22)
- .fill(Theme.accent)
+ Image(.aboutIcon)
+ .resizable()
.frame(width: 100, height: 100)
- .overlay {
- Text(verbatim: "R.")
- .font(.system(size: 56, weight: .medium, design: .serif))
- .foregroundStyle(Theme.onAccent)
- }
+ .clipShape(shape)
+ .overlay(shape.strokeBorder(Theme.rule))
.accessibilityHidden(true)
}
}
diff --git a/project.yml b/project.yml
@@ -55,6 +55,7 @@ targets:
base:
PRODUCT_BUNDLE_IDENTIFIER: net.inqk.reportage
INFOPLIST_FILE: Reportage/Info.plist
+ ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
CODE_SIGN_ENTITLEMENTS: Reportage/Reportage.entitlements
TARGETED_DEVICE_FAMILY: "1"
CODE_SIGN_STYLE: Automatic