Skip to content

Commit

Permalink
Improve 'blank judge logic'
Browse files Browse the repository at this point in the history
  • Loading branch information
changemin committed Dec 23, 2020
1 parent d10e690 commit 0435bf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/CMTagField/CMTagField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public struct CMTagField : View{
}
}
func isBlank(tag: String) -> Bool {
if(tag == "") {
let tmp = tag.trimmingCharacters(in: .whitespaces)
if(tmp == "") {
return true
}
else {
Expand Down

0 comments on commit 0435bf1

Please sign in to comment.