This website works better with JavaScript.
Home
Explore
Help
Sign In
kornerr
/
check-ios-bus
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
d
main
Михаил Капелько
10 months ago
parent
f4bb4e50e3
commit
af7ddfa161
3 changed files
with
25 additions
and
0 deletions
Split View
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
View File
@@ -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
View File
@@ -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
View File
@@ -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…
Cancel
Save