mirror of
https://github.com/jellyfin/Swiftfin.git
synced 2025-02-19 23:02:49 +00:00
Enable Swift Symbol Generation for Assets Catalogs (#955)
This commit is contained in:
parent
3efe899250
commit
876ffba417
@ -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)
|
||||
|
@ -75,7 +75,7 @@ struct ServerListView: View {
|
||||
SplitFormWindowView()
|
||||
.descriptionView {
|
||||
VStack {
|
||||
Image("jellyfin-blob-blue")
|
||||
Image(.jellyfinBlobBlue)
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.frame(maxWidth: 400)
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1430"
|
||||
LastUpgradeVersion = "1520"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1430"
|
||||
LastUpgradeVersion = "1520"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user