添加登录流程、会话路由和对齐参考 UI 的主 Tab 框架

This commit is contained in:
2026-07-06 15:12:34 +08:00
parent 3611547abe
commit 31ffec0f2b
70 changed files with 1588 additions and 48 deletions

View File

@ -0,0 +1,32 @@
//
// HomeViewController.swift
// suixinkan
//
import SnapKit
import UIKit
/// Tab
final class HomeViewController: BaseViewController {
private let titleLabel = UILabel()
override func setupNavigationBar() {
navigationController?.setNavigationBarHidden(true, animated: false)
}
override func setupUI() {
view.backgroundColor = UIColor(hex: 0xF7FAFF)
titleLabel.text = "首页"
titleLabel.font = .systemFont(ofSize: 24, weight: .medium)
titleLabel.textAlignment = .center
titleLabel.textColor = AppColor.text333
view.addSubview(titleLabel)
}
override func setupConstraints() {
titleLabel.snp.makeConstraints { make in
make.center.equalToSuperview()
}
}
}