feat: 引入第三方字体库
This commit is contained in:
parent
095d95b420
commit
50bff7cf12
@ -29,9 +29,22 @@
|
||||
ABB4E2082E4B75D900660198 /* wake.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = wake.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
|
||||
AB4FA8642E4F7074005D9955 /* Exceptions for "wake" folder in "wake" target */ = {
|
||||
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
|
||||
membershipExceptions = (
|
||||
Info.plist,
|
||||
);
|
||||
target = ABB4E2072E4B75D900660198 /* wake */;
|
||||
};
|
||||
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
|
||||
|
||||
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
||||
ABB4E20A2E4B75D900660198 /* wake */ = {
|
||||
isa = PBXFileSystemSynchronizedRootGroup;
|
||||
exceptions = (
|
||||
AB4FA8642E4F7074005D9955 /* Exceptions for "wake" folder in "wake" target */,
|
||||
);
|
||||
path = wake;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
@ -283,6 +296,8 @@
|
||||
DEVELOPMENT_TEAM = GB3VPJ54BD;
|
||||
ENABLE_PREVIEWS = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
INFOPLIST_FILE = wake/Info.plist;
|
||||
INFOPLIST_KEY_LSApplicationCategoryType = "";
|
||||
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||
@ -310,6 +325,8 @@
|
||||
DEVELOPMENT_TEAM = GB3VPJ54BD;
|
||||
ENABLE_PREVIEWS = YES;
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
INFOPLIST_FILE = wake/Info.plist;
|
||||
INFOPLIST_KEY_LSApplicationCategoryType = "";
|
||||
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||
|
||||
Binary file not shown.
@ -7,7 +7,7 @@
|
||||
<key>wake.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
<integer>3</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
@ -39,6 +39,8 @@ struct ContentView: View {
|
||||
// 状态栏占位
|
||||
Spacer().frame(height: UIApplication.shared.windows.first?.safeAreaInsets.top ?? 0)
|
||||
|
||||
Text("Wake")
|
||||
.font(.custom("SankeiCutePopanime", size: 27))
|
||||
// 顶部导航栏 - 左侧设置按钮
|
||||
HStack {
|
||||
// 设置按钮
|
||||
|
||||
10
wake/Info.plist
Normal file
10
wake/Info.plist
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>UIAppFonts</key>
|
||||
<array>
|
||||
<string>SankeiCutePopanime.ttf</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
wake/Resources/SankeiCutePopanime.ttf
Normal file
BIN
wake/Resources/SankeiCutePopanime.ttf
Normal file
Binary file not shown.
@ -6,9 +6,21 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import UIKit
|
||||
|
||||
@main
|
||||
struct WakeApp: App {
|
||||
// init() {
|
||||
// // 打印所有可用的字体
|
||||
// print("\n=== 所有可用的字体 ===")
|
||||
// for family in UIFont.familyNames.sorted() {
|
||||
// print("\n\(family):")
|
||||
// for name in UIFont.fontNames(forFamilyName: family).sorted() {
|
||||
// print(" - \(name)")
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
ContentView()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user