SwiftUI Weather App 13: Improving the UI

preview_player
Показать описание
Fix issues with keyboard not dismissing and add search field clear button. Also improve error message.

***NOTE**** You will need your own API Key. See Video #2

If you find this video series helpful, please consider buying me a coffee so I can continue to fund the resources required to keep me at it.

Series Web Site:

Starter Project:
You can download the completed files from the previous tutorial if you want to have a starting point:

The completed project for this video can be downloaded from here:

Other References in this video:
Hacking With Swift

Links to all Videos in this series.
Part 1
1. Introduction and Overview
2. The OpenWeatherMap API
3. Creating the Model
4. Creating an API Service Class Singleton
5. Testing the API

Part 2
6. Start Building the App
7. Building the List View
8. Implementing the Forecast ViewModel
9. Adding the Forecast List ViewModel
10. Metric or Imperial and Saving to UserDefaults
11. Downloading and Caching Images
12. Error Handling and Activity Loader
13. Improving the UI
14. Add an App Icon and Launch Screen
15. Refactoring APIService using Combine

Other References:
Stewart Lynch's YouTube Channel:
Stewart Lynch on Twitter:
CreaTECH Solutions Website:
Stewart Lynch's GitHub:

******** Download my StewartLynch YouTube Channel Application - Free ***********
Рекомендации по теме
Комментарии
Автор

Congrat Strewart! very well done tutorial.
Looking forward to see more from you … perhaps around Authentication (Sign Up/ Login) by hitting remote API endpoints.
Angelo, Italy

angelocapone
Автор

Thanks for this great series! I particularly like how you build something then refactor, all while keeping it really clear. One refactor I'd love to see (or maybe another series?) is how to refactor ContentView so each item (like the Picker, Location, and List) is its own stand alone view. I've been trying, but the data flow confuses me, such as when to use plain let/var, when to use @StateObject, etc. 
I've subscribed, and look forward to your content - much appreciated!

SBSanook
Автор

With the description set to .title2, I've found that the text (for example the date) often goes beyond the borders of the cell. Especially if you start up the app from a softkill (knowing you had data in the cells when you left the app). If you scroll down and up it resolves itself. This seems to be an iOS thing, can we even fix this?

maaikees
Автор

Hi Stewart. I love your tutorials. As usual, you did a great job. One issue in my opinion: Sometimes the location does not work like expected. For instance try "Fairbanks"! You have to input "Fairbanks, us". But I think that's the problem of the user, or is there something I could do?
Anyway. Thanks for your time.
Peter from G.

peterplass