Enable Swift Symbol Generation for Assets Catalogs (#955)

This commit is contained in:
Daniel Chick 2024-03-13 15:37:03 -05:00 committed by GitHub
parent 3efe899250
commit 876ffba417
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 14 additions and 12 deletions

View File

@ -26,7 +26,7 @@ struct BasicAppSettingsView: View {
var body: some View {
SplitFormWindowView()
.descriptionView {
Image("jellyfin-blob-blue")
Image(.jellyfinBlobBlue)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(maxWidth: 400)

View File

@ -75,7 +75,7 @@ struct ServerListView: View {
SplitFormWindowView()
.descriptionView {
VStack {
Image("jellyfin-blob-blue")
Image(.jellyfinBlobBlue)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(maxWidth: 400)

View File

@ -25,7 +25,7 @@ struct SettingsView: View {
var body: some View {
SplitFormWindowView()
.descriptionView {
Image("jellyfin-blob-blue")
Image(.jellyfinBlobBlue)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(maxWidth: 400)

View File

@ -2964,7 +2964,7 @@
New,
);
LastSwiftUpdateCheck = 1250;
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1520;
TargetAttributes = {
5358705F2669D21600D05A09 = {
CreatedOnToolsVersion = 12.5;
@ -3994,6 +3994,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
@ -4058,6 +4059,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

View File

@ -45,7 +45,7 @@ struct AboutAppView: View {
ChevronButton(title: L10n.sourceCode)
.leadingView {
Image("logo.github")
Image(.logoGithub)
.resizable()
.frame(width: 20, height: 20)
.foregroundColor(.primary)

View File

@ -26,11 +26,11 @@ extension ItemView.AboutView {
VStack {
Group {
if criticRating >= 60 {
Image("tomato.fresh")
Image(.tomatoFresh)
.symbolRenderingMode(.multicolor)
.foregroundStyle(.green, .red)
} else {
Image("tomato.rotten")
Image(.tomatoRotten)
.symbolRenderingMode(.monochrome)
.foregroundColor(.green)
}

View File

@ -103,7 +103,7 @@ struct LiveTVChannelItemWideElement: View {
programLabel(
timeText: currentProgramText.timeDisplay,
titleText: currentProgramText.title,
color: Color("TextHighlightColor")
color: Color(.textHighlight)
)
if nextProgramsText.isNotEmpty {
let nextItem = nextProgramsText[0]
@ -132,7 +132,7 @@ struct LiveTVChannelItemWideElement: View {
.background {
RoundedRectangle(cornerRadius: 10, style: .continuous)
.fill(Color("BackgroundColor"))
.shadow(color: Color("ShadowColor"), radius: 4, x: 0, y: 0)
.shadow(color: Color(.shadow), radius: 4, x: 0, y: 0)
}
}

View File

@ -6,7 +6,7 @@
## Setup
Fork the Swiftfin repo and install the necessary dependencies with Xcode 14:
Fork the Swiftfin repo and install the necessary dependencies with Xcode 15:
```bash
# install Carthage, SwiftFormat, and SwiftGen with homebrew