I would like to add a notification banner as an addition to an existing github application. This banner would displays a warning whenever the temperature rises above 90°F or 32°C and drops below 50°F or 10°C. I am using Swift 4 and xcode 9.4 and am new app development.
I have taken a look at this guide and to these instructions to build a simple weather application, but they do not describe how to add a notification with the temperature. Is there a way to access the weather information or about the temperature from the app.
I have read about using UNUserNotificationCenterDelegate from this post and want to find a way to simple display a temperature warning. I would appreciate any code snippets that can illustrate how to accomplish this.