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>
This commit is contained in:
@ -110,6 +110,7 @@ final class OperatingAreaViewModel {
|
||||
mode?.title ?? "运营区域"
|
||||
}
|
||||
|
||||
/// apply 业务逻辑。
|
||||
private func apply(items: [OperatingAreaItem], mode: OperatingAreaEntryMode) {
|
||||
self.items = items
|
||||
if items.isEmpty {
|
||||
@ -139,6 +140,7 @@ final class OperatingAreaViewModel {
|
||||
blockReason = parsed.isEmpty ? .noParsableFenceData : nil
|
||||
}
|
||||
|
||||
/// setBlocked相关逻辑。
|
||||
private func setBlocked(_ reason: OperatingAreaBlockReason) {
|
||||
resetLoadedData()
|
||||
blockReason = reason
|
||||
@ -146,6 +148,7 @@ final class OperatingAreaViewModel {
|
||||
loading = false
|
||||
}
|
||||
|
||||
/// 重置LoadedData状态。
|
||||
private func resetLoadedData() {
|
||||
items = []
|
||||
fenceRings = []
|
||||
|
||||
Reference in New Issue
Block a user