Files
suixinkan_ios_uikit/suixinkan_ios/Features/Main/ViewControllers/PlaceholderViewController.swift
汉秋 d99a5b1bf8 Advance UIKit rewrite with AMap integration and core UI modules.
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>
2026-06-26 15:16:12 +08:00

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)
}
}
}