Files
suixinkan_ios_new/suixinkan/Features/Splash/SplashTypography.swift
汉秋 258c438f9a 优化冷启动流程:Launch Screen 对齐 Splash,仅阻塞 rolePermissions。
移除 SplashCoordinator,bootstrap 期间用 SplashView 覆盖避免空白闪屏,其余账号数据改为后台补充刷新。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 09:56:49 +08:00

38 lines
1.2 KiB
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// SplashTypography.swift
// suixinkan
//
// Created by Codex on 2026/6/30.
//
import SwiftUI
import UIKit
/// `SplashView` `Launch Screen.storyboard`
enum SplashTypography {
///
static let titlePointSize: CGFloat = 40
///
static let subtitlePointSize: CGFloat = 20
/// UIKit 40pt system bold + italic
static var titleUIFont: UIFont {
let base = UIFont.systemFont(ofSize: titlePointSize, weight: .bold)
guard let descriptor = base.fontDescriptor.withSymbolicTraits([.traitBold, .traitItalic]) else {
return base
}
return UIFont(descriptor: descriptor, size: titlePointSize)
}
/// UIKit 20pt system bold
static var subtitleUIFont: UIFont {
UIFont.systemFont(ofSize: subtitlePointSize, weight: .bold)
}
/// SwiftUI
static var titleFont: Font { Font(titleUIFont) }
/// SwiftUI
static var subtitleFont: Font { Font(subtitleUIFont) }
}