Skip to content

Programmatically replaced + button's addAddress with a UISearchBar#13

Open
SamuelFolledo wants to merge 26 commits into
LinnierGames:weather-appfrom
SamuelFolledo:weather-app
Open

Programmatically replaced + button's addAddress with a UISearchBar#13
SamuelFolledo wants to merge 26 commits into
LinnierGames:weather-appfrom
SamuelFolledo:weather-app

Conversation

@SamuelFolledo

Copy link
Copy Markdown

What I added

  • Added a UISearchBar that shows actual street/city/area addresses based on user input
  • Cells can be selected and stored locally to the stored addresses
  • Handled edge cases in case user input a city or area only instead of a full address

What I changed or removed

  • Changed + button from showing an alert to adding address based on what the user inputted on the searchBar
  • Added demo and changed screenshot on README to match the new UI

What I would have loved to change/add if I put more time

  • Better UI on the searchCell

#Amend Sample Project

…and state and not the street name on the cell

[add] implemented delegate and called the addNewItem method
…" -> "San Francisco San Francisco, CA") on the cell and address rawValue to only show the city once if city is the same as the name
…ss from search bar's input instead of launching an alert controller

[add] clear search bar's text when clicking the plus button or tapping on an address
[add] cleaned code to be clearer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant