mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-26 00:21:55 +08:00
release: PaopaoLocationSpoofer v1.0.0
- iOS 虚拟定位工具,基于本地 HTTP 代理 MITM 方案 - MapKit 原生地图体验,支持搜索、收藏、实时定位 - 完整的设置引导流程(证书安装、WiFi 代理配置、环境验证) - 支持 iOS 15+,SwiftUI 构建
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
import Foundation
|
||||
|
||||
enum CertificateTrustState: Equatable {
|
||||
case checking
|
||||
case trusted
|
||||
case unavailable
|
||||
|
||||
var canModify: Bool { self == .trusted }
|
||||
|
||||
var message: String {
|
||||
switch self {
|
||||
case .checking: return "checking..."
|
||||
case .trusted: return "trusted"
|
||||
case .unavailable: return "not configured"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum LocationActionState: Equatable {
|
||||
case idle
|
||||
case applyingLocation
|
||||
case failed(String)
|
||||
|
||||
var isBusy: Bool {
|
||||
if case .applyingLocation = self { return true }
|
||||
return false
|
||||
}
|
||||
|
||||
var isFailure: Bool {
|
||||
if case .failed = self { return true }
|
||||
return false
|
||||
}
|
||||
|
||||
var statusTitle: String {
|
||||
switch self {
|
||||
case .idle: return ""
|
||||
case .applyingLocation: return "applying..."
|
||||
case .failed: return "failed"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user