mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Bossy linter
This commit is contained in:
parent
26e917df48
commit
a4d5aefca3
43 changed files with 191 additions and 232 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue