Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
63cc64e
chore(SwiftGen): import Swift Gen in dependencies of SPM Package file
Dec 4, 2025
e577122
chore(SwiftGen): add empty comment for temp file
Dec 4, 2025
1360e9f
chore(SharedAssets): add new module
Dec 6, 2025
95d798a
chore(Colors.xcassets): add new xcassets folder with single color for…
Dec 6, 2025
63b5d8a
Merge pull request #84 from SwiftLeeds/add-shared-assets-module
PaulRWillis Dec 6, 2025
6bad292
chore(SwiftGen): add template stencil and swiftgen file
Dec 6, 2025
ce0d072
chore(SwiftGen): Updates stencil
Dec 6, 2025
06d7b2a
chore(SLColorResource): move declaration out of stencil and into hard…
Dec 7, 2025
182cf7a
chore(SLImageResource): move declaration out of stencil and into hard…
Dec 7, 2025
8d1629d
style(SwiftGen): address warning where public values were added to a …
Dec 7, 2025
81b6d6c
chore(SwiftGen): update stencil to autogenerate assets from multiple …
Dec 7, 2025
b4f9644
chore(SLResource): simplify conditional import management
Dec 7, 2025
66d4fc5
style(SwiftGen): minor changes to style of generated assets file
Dec 7, 2025
258c2fc
chore(Assets): move all color and image assets to `SharedAssets` module
Dec 7, 2025
21f72c8
chore(RequiredSwiftFileForSPM): add image to test preview
Dec 7, 2025
82264d2
chore(SwiftGen): remove force namespaces param
Dec 7, 2025
33b63ed
style(SLColorResource): remove whitespace
Dec 7, 2025
1204553
chore(SwiftGen): update stencil template to remove need for SLColorRe…
Dec 7, 2025
747bc41
chore(SwiftGen): remove hardcoded resources
Dec 7, 2025
ffad9c5
Merge branch 'main' into import-swift-gen
Dec 11, 2025
5d1f22c
Merge branch 'main' into import-swift-gen
Dec 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions SwiftLeeds.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
7B31C8F12ED0A7BF00FEEDF7 /* Settings in Frameworks */ = {isa = PBXBuildFile; productRef = 7B31C8F02ED0A7BF00FEEDF7 /* Settings */; };
7B31C8F32ED0AB0E00FEEDF7 /* Settings in Frameworks */ = {isa = PBXBuildFile; productRef = 7B31C8F22ED0AB0E00FEEDF7 /* Settings */; };
7B31C8F52ED0AB1600FEEDF7 /* Settings in Frameworks */ = {isa = PBXBuildFile; productRef = 7B31C8F42ED0AB1600FEEDF7 /* Settings */; };
7B8C3ECF2EE4A9F70089C6CF /* SharedAssets in Frameworks */ = {isa = PBXBuildFile; productRef = 7B8C3ECE2EE4A9F70089C6CF /* SharedAssets */; };
AE1C8010289E9F3800996659 /* String.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE1C800F289E9F3800996659 /* String.swift */; };
AE1C801428A7BCD000996659 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = AE1C801328A7BCD000996659 /* Settings.bundle */; };
AE32CDF0286CCF9D00DF0AFF /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE32CDEF286CCF9D00DF0AFF /* Constants.swift */; };
Expand Down Expand Up @@ -307,6 +308,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
7B8C3ECF2EE4A9F70089C6CF /* SharedAssets in Frameworks */,
7B31C8E52ED08DD100FEEDF7 /* Networking in Frameworks */,
7B31C8F12ED0A7BF00FEEDF7 /* Settings in Frameworks */,
74F5EF8C2A4B4352008D9413 /* ReadabilityModifier in Frameworks */,
Expand Down Expand Up @@ -676,6 +678,7 @@
7B31C8E42ED08DD100FEEDF7 /* Networking */,
7B31C8EA2ED0959000FEEDF7 /* DesignKit */,
7B31C8F02ED0A7BF00FEEDF7 /* Settings */,
7B8C3ECE2EE4A9F70089C6CF /* SharedAssets */,
);
productName = SwiftLeeds;
productReference = AECB295327417F9D00CDC983 /* SwiftLeeds.app */;
Expand Down Expand Up @@ -1525,6 +1528,10 @@
isa = XCSwiftPackageProductDependency;
productName = Settings;
};
7B8C3ECE2EE4A9F70089C6CF /* SharedAssets */ = {
isa = XCSwiftPackageProductDependency;
productName = SharedAssets;
};
AE5EFD72289DC1D000464FE1 /* CachedAsyncImage */ = {
isa = XCSwiftPackageProductDependency;
package = AE5EFD71289DC1D000464FE1 /* XCRemoteSwiftPackageReference "swiftui-cached-async-image" */;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions SwiftLeedsPackage/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion SwiftLeedsPackage/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ let package = Package(
"Settings",
]
),
.library(
name: "SharedAssets",
targets: [
"SharedAssets",
]
)
],
dependencies: [
.package(url: "https://github.com/shadone/SwiftGenPlugin", branch: "6.6.2+deriveddatafix"),
],
targets: [
.target(
Expand All @@ -51,7 +60,13 @@ let package = Package(
),
.target(
name: "ColorTheme"
)
),
.target(
name: "SharedAssets",
plugins: [
.plugin(name: "SwiftGenPlugin", package: "SwiftGenPlugin"),
]
),
],
// Set to v5 to avoid strict concurrency checking in pre swift 6 code
swiftLanguageModes: [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File needed to avoid Swift Package compilation error

import SwiftUI

struct Test: View {
var body: some View {
ZStack {
Color.accent
Image.appIconPreview2024
}
.edgesIgnoringSafeArea(.vertical)
}
}

#Preview {
Test()
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x30",
"green" : "0x3B",
"red" : "0xFF"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xED",
"green" : "0xED",
"red" : "0xED"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x1E",
"green" : "0x1D",
"red" : "0x1C"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFF"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x3A",
"green" : "0x3A",
"red" : "0x3A"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xD4",
"green" : "0xD4",
"red" : "0xD4"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFF"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x4A",
"green" : "0x4A",
"red" : "0x4A"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFF"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x9A",
"green" : "0x9A",
"red" : "0x9A"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x7F",
"green" : "0x7F",
"red" : "0x7F"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x5E",
"green" : "0x5E",
"red" : "0x5E"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x5E",
"green" : "0x5E",
"red" : "0x5E"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading