This website works better with JavaScript.
首頁
探索
說明
登入
kornerr
/
check-ios-bus
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
d
main
Михаил Капелько
10 月之前
父節點
f4bb4e50e3
當前提交
af7ddfa161
共有
3 個文件被更改
,包括
25 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
Modules/MeetupIdX/src/MeetupId.K.swift
+19
-0
Modules/MeetupIdX/src/MeetupId.TV.swift
+3
-0
src/App.swift
+ 3
- 0
Modules/MeetupIdX/src/MeetupId.K.swift
查看文件
@@ -7,6 +7,9 @@ public extension MeetupId {
static let M = "MeetupId"
static let textApp = "MeetupId.textApp"
static let textUI = "MeetupId.textUI"
static let testTextApp = "MeetupId.testTextApp"
static let testTextUI = "MeetupId.testTextUI"
}
}
+ 19
- 0
Modules/MeetupIdX/src/MeetupId.TV.swift
查看文件
@@ -0,0 +1,19 @@
import BusX
import SwiftUI
extension MeetupId {
public struct TV: View {
@StateObject var textField = BusUI.TextField(K.testTextApp, K.testTextUI)
public init(_ id: String) {
textField.id = id
}
public var body: some View {
TextField("TV", value: $textField.v, formatter: BusUI.TextFieldSource())
.padding(8)
.border(Color.blue)
.animation(.easeInOut(duration: 0.3))
}
}
}
+ 3
- 0
src/App.swift
查看文件
@@ -6,6 +6,9 @@ struct Content: View {
var body: some View {
MeetupId.V()
Divider()
MeetupId.TV("uuid-1")
Divider()
MeetupId.TV("uuid-2")
}
}
Write
Preview
Loading…
取消
儲存