Skip to content

Commit 4d2d2b5

Browse files
dadachiclaude
andauthored
Replace Inter font with Apple system font (#30)
Replace custom Inter-Medium/Bold fonts with system font equivalents in both SwiftUI and UIKit extensions. Remove font files, Info.plist registration, and Xcode project references. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1a38ee9 commit 4d2d2b5

6 files changed

Lines changed: 9 additions & 30 deletions

File tree

NativeAppTemplate.xcodeproj/project.pbxproj

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@
114114
0182D37825B277FA001E881D /* KeychainStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0182D37625B277D6001E881D /* KeychainStore.swift */; };
115115
0182D38225B296B9001E881D /* ShopkeeperAdapter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0182D38125B296B9001E881D /* ShopkeeperAdapter.swift */; };
116116
0182D39A25B4424B001E881D /* LoggedInShopkeeperKeychainStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0182D39925B4424B001E881D /* LoggedInShopkeeperKeychainStore.swift */; };
117-
018D4EFD2B6350E800CBA736 /* Inter-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 018D4EFC2B6350E800CBA736 /* Inter-Medium.ttf */; };
118-
018D4EFF2B6350F500CBA736 /* Inter-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 018D4EFE2B6350F500CBA736 /* Inter-Bold.ttf */; };
119117
018E21CB2B36367F00FFD1F6 /* MeRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 018E21CA2B36367F00FFD1F6 /* MeRequest.swift */; };
120118
018E21CD2B36377800FFD1F6 /* MeService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 018E21CC2B36377800FFD1F6 /* MeService.swift */; };
121119
0199CD242E07510200109DC6 /* AccountPasswordRepositoryProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0199CD212E07510200109DC6 /* AccountPasswordRepositoryProtocol.swift */; };
@@ -291,8 +289,6 @@
291289
0182D37625B277D6001E881D /* KeychainStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeychainStore.swift; sourceTree = "<group>"; };
292290
0182D38125B296B9001E881D /* ShopkeeperAdapter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShopkeeperAdapter.swift; sourceTree = "<group>"; };
293291
0182D39925B4424B001E881D /* LoggedInShopkeeperKeychainStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoggedInShopkeeperKeychainStore.swift; sourceTree = "<group>"; };
294-
018D4EFC2B6350E800CBA736 /* Inter-Medium.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Inter-Medium.ttf"; sourceTree = "<group>"; };
295-
018D4EFE2B6350F500CBA736 /* Inter-Bold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Inter-Bold.ttf"; sourceTree = "<group>"; };
296292
018E21CA2B36367F00FFD1F6 /* MeRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeRequest.swift; sourceTree = "<group>"; };
297293
018E21CC2B36377800FFD1F6 /* MeService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeService.swift; sourceTree = "<group>"; };
298294
0199CD212E07510200109DC6 /* AccountPasswordRepositoryProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountPasswordRepositoryProtocol.swift; sourceTree = "<group>"; };
@@ -716,7 +712,6 @@
716712
0172046D25AA8325008FD63B /* Styleguide */ = {
717713
isa = PBXGroup;
718714
children = (
719-
018D4EFB2B6350CB00CBA736 /* Inter */,
720715
0172047625AA8325008FD63B /* Color+Extensions.swift */,
721716
0172047525AA8325008FD63B /* Font+Extensions.swift */,
722717
0172046E25AA8325008FD63B /* UIFont+Extensions.swift */,
@@ -798,15 +793,6 @@
798793
path = KeychainStore;
799794
sourceTree = "<group>";
800795
};
801-
018D4EFB2B6350CB00CBA736 /* Inter */ = {
802-
isa = PBXGroup;
803-
children = (
804-
018D4EFE2B6350F500CBA736 /* Inter-Bold.ttf */,
805-
018D4EFC2B6350E800CBA736 /* Inter-Medium.ttf */,
806-
);
807-
path = Inter;
808-
sourceTree = "<group>";
809-
};
810796
0190B3D3263F7B94009E09FF /* Repositories */ = {
811797
isa = PBXGroup;
812798
children = (
@@ -950,8 +936,6 @@
950936
isa = PBXResourcesBuildPhase;
951937
files = (
952938
015C78052B72DA2C00B6523C /* PrivacyInfo.xcprivacy in Resources */,
953-
018D4EFF2B6350F500CBA736 /* Inter-Bold.ttf in Resources */,
954-
018D4EFD2B6350E800CBA736 /* Inter-Medium.ttf in Resources */,
955939
011F6DF8259EF16600BED22E /* Preview Assets.xcassets in Resources */,
956940
011F6DF5259EF16600BED22E /* Assets.xcassets in Resources */,
957941
);

NativeAppTemplate/Info.plist

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
<string>This app uses a NFC to write the application info to the NFC number tag or to read the NFC number tag into the application.</string>
2929
<key>NSPhotoLibraryAddUsageDescription</key>
3030
<string>Save a QR code image including web page link used by this app.</string>
31-
<key>UIAppFonts</key>
32-
<array>
33-
<string>Inter-Medium.ttf</string>
34-
<string>Inter-Bold.ttf</string>
35-
</array>
3631
<key>UIApplicationSceneManifest</key>
3732
<dict>
3833
<key>UIApplicationSupportsMultipleScenes</key>

NativeAppTemplate/Styleguide/Font+Extensions.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,35 @@ import SwiftUI
77

88
extension Font {
99
static var uiLargeTitle: Font {
10-
.custom("Inter-Bold", size: 36.0, relativeTo: .largeTitle)
10+
.system(size: UIFontMetrics.default.scaledValue(for: 36.0)).weight(.bold)
1111
}
1212

1313
static var uiTitle1: Font {
14-
.custom("Inter-Medium", size: 30.0, relativeTo: .title)
14+
.system(size: UIFontMetrics.default.scaledValue(for: 30.0)).weight(.medium)
1515
}
1616

1717
static var uiTitle2: Font {
18-
.custom("Inter-Bold", size: 24.0, relativeTo: .title2)
18+
.system(size: UIFontMetrics.default.scaledValue(for: 24.0)).weight(.bold)
1919
}
2020

2121
static var uiTitle3: Font {
22-
.custom("Inter-Bold", size: 20.0, relativeTo: .title3)
22+
.system(size: UIFontMetrics.default.scaledValue(for: 20.0)).weight(.bold)
2323
}
2424

2525
static var uiTitle4: Font {
26-
.custom("Inter-Medium", size: 18.0, relativeTo: .title3)
26+
.system(size: UIFontMetrics.default.scaledValue(for: 18.0)).weight(.medium)
2727
}
2828

2929
static var uiTitle5: Font {
30-
.custom("Inter-Medium", size: 18.0, relativeTo: .body)
30+
.system(size: UIFontMetrics.default.scaledValue(for: 18.0)).weight(.medium)
3131
}
3232

3333
static var uiHeadline: Font {
3434
.system(size: UIFontMetrics.default.scaledValue(for: 18.0)).weight(.semibold)
3535
}
3636

3737
static var uiNumberBox: Font {
38-
.custom("Inter-Bold", size: 12.0, relativeTo: .footnote)
38+
.system(size: UIFontMetrics.default.scaledValue(for: 12.0)).weight(.bold)
3939
}
4040

4141
static var uiBodyAppleDefault: Font {
-309 KB
Binary file not shown.
-308 KB
Binary file not shown.

NativeAppTemplate/Styleguide/UIFont+Extensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import UIKit
77

88
extension UIFont {
99
static var uiLargeTitle: UIFont {
10-
.init(name: "Inter-Bold", size: 36.0)!
10+
.systemFont(ofSize: 36.0, weight: .bold)
1111
}
1212

1313
static var uiHeadline: UIFont {
14-
.init(name: "Inter-Medium", size: 18.0)!
14+
.systemFont(ofSize: 18.0, weight: .medium)
1515
}
1616
}

0 commit comments

Comments
 (0)