Integrate高德 SDK with simulator-safe build flags, add map views for operating area and punch points, refactor main tabs and key feature screens to UIKit with Diffable lists, and document Swift concurrency defaults in AGENTS.md. Co-authored-by: Cursor <cursoragent@cursor.com>
44 lines
1.2 KiB
Swift
44 lines
1.2 KiB
Swift
//
|
|
// PlaceholderViewController.swift
|
|
// suixinkan
|
|
//
|
|
|
|
import SnapKit
|
|
import UIKit
|
|
|
|
/// 未知或未实现路由的占位页。
|
|
final class PlaceholderViewController: UIViewController {
|
|
|
|
private let pageTitle: String
|
|
|
|
/// 初始化实例。
|
|
init(title: String) {
|
|
pageTitle = title
|
|
super.init(nibName: nil, bundle: nil)
|
|
}
|
|
|
|
@available(*, unavailable)
|
|
required init?(coder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
|
|
/// 视图加载完成后的 UI 初始化与数据绑定。
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
view.backgroundColor = UIColor(hex: 0xF5F7FA)
|
|
title = pageTitle
|
|
|
|
let label = UILabel()
|
|
label.text = pageTitle
|
|
label.font = .systemFont(ofSize: AppMetrics.FontSize.title2, weight: .semibold)
|
|
label.textColor = AppDesign.textPrimary
|
|
label.textAlignment = .center
|
|
label.numberOfLines = 0
|
|
view.addSubview(label)
|
|
label.snp.makeConstraints { make in
|
|
make.center.equalToSuperview()
|
|
make.leading.trailing.equalToSuperview().inset(AppMetrics.Spacing.large)
|
|
}
|
|
}
|
|
}
|