Skip to content

Commit

Permalink
add clear button to search textfield
Browse files Browse the repository at this point in the history
  • Loading branch information
grenos committed Apr 10, 2020
1 parent 89a6b39 commit 6238c25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file not shown.
3 changes: 3 additions & 0 deletions GHFollowers/Components/TextFields/GFTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ class GFTextField: UITextField {
//keyboardType = .default
returnKeyType = .search

// add x button to clear text input
clearButtonMode = .whileEditing

placeholder = "Enter a username"
}
}

0 comments on commit 6238c25

Please sign in to comment.