Skip to content

Commit e0abc6b

Browse files
committed
Reveal single line when tapping the dots
1 parent 6aa0239 commit e0abc6b

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

LoopFollow/Helpers/Views/TogglableSecureInput.swift

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,19 @@ struct TogglableSecureInput: View {
8282
}
8383
.contentShape(Rectangle())
8484
.onTapGesture {
85-
if style == .multiLine && !isVisible {
85+
if !isVisible {
8686
isVisible = true
87-
isMultilineFocused = true
88-
} else if style == .singleLine {
89-
isFocused = true
90-
} else if style == .multiLine && isVisible {
91-
isMultilineFocused = true
87+
if style == .singleLine {
88+
isFocused = true
89+
} else if style == .multiLine {
90+
isMultilineFocused = true
91+
}
92+
} else {
93+
if style == .singleLine {
94+
isFocused = true
95+
} else if style == .multiLine {
96+
isMultilineFocused = true
97+
}
9298
}
9399
}
94100
}

0 commit comments

Comments
 (0)