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; };
|
ABB4E2082E4B75D900660198 /* wake.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = wake.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
/* End PBXFileReference section */
|
/* 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 */
|
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
||||||
ABB4E20A2E4B75D900660198 /* wake */ = {
|
ABB4E20A2E4B75D900660198 /* wake */ = {
|
||||||
isa = PBXFileSystemSynchronizedRootGroup;
|
isa = PBXFileSystemSynchronizedRootGroup;
|
||||||
|
exceptions = (
|
||||||
|
AB4FA8642E4F7074005D9955 /* Exceptions for "wake" folder in "wake" target */,
|
||||||
|
);
|
||||||
path = wake;
|
path = wake;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
@ -283,6 +296,8 @@
|
|||||||
DEVELOPMENT_TEAM = GB3VPJ54BD;
|
DEVELOPMENT_TEAM = GB3VPJ54BD;
|
||||||
ENABLE_PREVIEWS = YES;
|
ENABLE_PREVIEWS = YES;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
|
INFOPLIST_FILE = wake/Info.plist;
|
||||||
|
INFOPLIST_KEY_LSApplicationCategoryType = "";
|
||||||
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
||||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||||
@ -310,6 +325,8 @@
|
|||||||
DEVELOPMENT_TEAM = GB3VPJ54BD;
|
DEVELOPMENT_TEAM = GB3VPJ54BD;
|
||||||
ENABLE_PREVIEWS = YES;
|
ENABLE_PREVIEWS = YES;
|
||||||
GENERATE_INFOPLIST_FILE = YES;
|
GENERATE_INFOPLIST_FILE = YES;
|
||||||
|
INFOPLIST_FILE = wake/Info.plist;
|
||||||
|
INFOPLIST_KEY_LSApplicationCategoryType = "";
|
||||||
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
||||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||||
|
|||||||
Binary file not shown.
@ -7,7 +7,7 @@
|
|||||||
<key>wake.xcscheme_^#shared#^_</key>
|
<key>wake.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>0</integer>
|
<integer>3</integer>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
|
|||||||
@ -39,6 +39,8 @@ struct ContentView: View {
|
|||||||
// 状态栏占位
|
// 状态栏占位
|
||||||
Spacer().frame(height: UIApplication.shared.windows.first?.safeAreaInsets.top ?? 0)
|
Spacer().frame(height: UIApplication.shared.windows.first?.safeAreaInsets.top ?? 0)
|
||||||
|
|
||||||
|
Text("Wake")
|
||||||
|
.font(.custom("SankeiCutePopanime", size: 27))
|
||||||
// 顶部导航栏 - 左侧设置按钮
|
// 顶部导航栏 - 左侧设置按钮
|
||||||
HStack {
|
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 SwiftUI
|
||||||
|
import UIKit
|
||||||
|
|
||||||
@main
|
@main
|
||||||
struct WakeApp: App {
|
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 {
|
var body: some Scene {
|
||||||
WindowGroup {
|
WindowGroup {
|
||||||
ContentView()
|
ContentView()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user