Bossy linter

This commit is contained in:
Garth Vander Houwen 2024-10-05 15:50:57 -07:00
parent 26e917df48
commit a4d5aefca3
43 changed files with 191 additions and 232 deletions

View file

@ -51,7 +51,7 @@ struct WaypointFormMapKit: View {
axis: .vertical
)
.foregroundColor(Color.gray)
.onChange(of: name, perform: { _ in
.onChange(of: name) {
var totalBytes = name.utf8.count
// Only mess with the value if it is too big
while totalBytes > 30 {
@ -61,7 +61,7 @@ struct WaypointFormMapKit: View {
if totalBytes > 30 {
name = String(name.dropLast())
}
})
}
}
HStack {
Text("Description")