StewartLynch, (edited ) to SwiftUI
@StewartLynch@iosdev.space avatar

The series on building a full app is complete.
In this video we create functions to encode and decode our list and as JSON stored in app Documents Directory.
https://youtu.be/bW52ZSOGWek
Full Series: https://youtube.com/playlist?list=PLBn01m5Vbs4B7bGUeaWJLi9mGqxYVJaAG&si=zBkpcG6PGOYx_c05

StewartLynch, to SwiftUI
@StewartLynch@iosdev.space avatar

This is the 6th video in a 7 part series on building a #SwiftUI app using #WeatherKit.
In this video I am going to show you how you can use the CoreLocation and MapKit frameworks to search for and add cities by name. Final persistence video on Wednesday.
https://youtu.be/puelrPxXj-8

StewartLynch, (edited ) to SwiftUI
@StewartLynch@iosdev.space avatar

This is the 5th video in a 7 Part series on building a full weather app using .
In this video we will be adding the final forecast type and that is a 10 day daily forecast.

https://youtu.be/33AdLX2GU2c
Full Playlist is: https://youtube.com/playlist?list=PLBn01m5Vbs4B7bGUeaWJLi9mGqxYVJaAG&si=X5K-oWJpCoXiNGFG

StewartLynch, to SwiftUI
@StewartLynch@iosdev.space avatar

I am moving up my release schedule for my 7 part series. Here are the latest two in the series.
Make your app shine with dynamic backgrounds hourly forecast and an updated UI.

Video 3: https://youtu.be/oCJRZJ_Kb4s
Video 4: https://youtu.be/jgmkbRGgKxM

StewartLynch, to SwiftUI
@StewartLynch@iosdev.space avatar

The 2nd video in the 7 part series is now available.

In this video we will introduce locationManager so that the app will be able to determine your current location and display the weather for that location when the app launches.

https://youtu.be/bl_0hNyoeWs

StewartLynch, to SwiftUI
@StewartLynch@iosdev.space avatar

The first video of the new 7 part video on is now available. All 7 will be released before WWDC. Next one comes on Wednesday.
Buy me a ko-fi and get access to all 7 now (ko-fi.com/StewarLynch)
https://youtu.be/8qz1LxtM7aI

video/mp4

StewartLynch, to SwiftUI
@StewartLynch@iosdev.space avatar

Brand new, free 7 part series coming to my YouTube Channel starting May 19. Buy me a Ko-fi now and get immediate access to entire series. My monthly subscribers already have it.

https://ko-fi.com/stewartlynch
https://youtube.com/@StewartLynch

video/mp4

MuseumShuffle, to random
@MuseumShuffle@mastodon.social avatar

Regarding the issue I noticed with Apple WeatherKit not returning a 10 day forecast sometimes, @kaidombrowski mentioned that he's seen this recently also and pointed out that you can see this reflected in the Apple Weather app.

Sure enough, at 7:30AM CDT it shows a "daily forecast" with 9 days for Rosemont IL. But at 10AM CDT it shows a "10 day forecast" with 10 days.

MuseumShuffle, to random
@MuseumShuffle@mastodon.social avatar

I'm now thinking that the problem I'm seeing with WeatherKit not returning weather for 10 days might be based on what time of the day it currently is.

I couldn't recreate it yesterday afternoon. Woke up this morning and could easily recreate it. Waited two hours and it's not happening again.

With the same start and end time in Chicago when I made a request around 8am EDT it returned 10 days of hourly info but only 9 days of daily info. Around 10am EDT it returns 10 days of both.

Asking for weather from April 16 to 25. Got back daily forecasts for April 16 to 25.

MuseumShuffle, to random
@MuseumShuffle@mastodon.social avatar

I've noticed something odd with WeatherKit the last few days.

I ask for the weather from the start of today to 9 days from that. The day that is 9 days away has limited data (no hourly data but some limited data about the day). That’s fine.

The last few days I’ve noticed my app not showing info for the day 9 days away sometimes.

I decided to do some logging and record what the first and last hours and days returned are before I use the data from WeatherKit.

🧵 1/2

MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

The images attached show the last daily info returned as April 23 but also as April 24 in another attempt for the same city for the same dates. I did both of these attempts between just now (nowhere near midnight CDT) so there should be no difference in what is returned.

Filed FB13730365

2/2

@malin @kaidombrowski @joehribar @alpennec

Weather data that ends with daily info for April 24.

Jeehut, to AppleVisionPro
@Jeehut@iosdev.space avatar

What if @Apple provides an API for the data of the new app to developers at ? 🤔

They did the same thing with in 2022, pricing was fair even for Indies. Imagine what kind of apps we could build! ⛹️‍♀️

This could especially shine on . ✨

MuseumShuffle, (edited ) to random
@MuseumShuffle@mastodon.social avatar

I need help from my fellow WeatherKit geeks.

Every since I made @PleaseDontRain I've been bothered by snow in my precipitation chart. The amount show just seemed drastically too low. Posted in the dev forums and got an answer that the hour's precipitation is in LIQUID format. Made sense that the value would be less.

Today I saw a chart in the iOS weather app where the snow was much bigger than the rain, which is what I've expected all along. PDR looks very different.

🧵

MuseumShuffle, (edited )
@MuseumShuffle@mastodon.social avatar

So I did a deep dive into the raw data I'm getting from WeatherKit.

The precipitationAmount for the snow for the hour lined up with what I'm reporting in my app.

But WAIT. My eye spotted that there's a "snowfallAmount" property. And these values are matching up to what the iOS weather app is showing for snow for the hours in question!

🧵

alpennec, to swift
@alpennec@iosdev.space avatar

WeatherKit friends: the unit for wind speed/gust is km/h? Is there a way to change that?

From what I know, WeatherKit should be using the metric system. So I don't get why it's not m/s, which is the SI unit in the system...

https://developer.apple.com/documentation/weatherkitrestapi/unitssystem

alpennec, to SwiftUI
@alpennec@iosdev.space avatar

Ok, let's see if will help me revive Skipper, my boating logbook app!

Plans:

  • Migrate to
  • Ditch old 3rd-party libraries
  • Support CloudKit sync (database migration required 😱)
  • Play with Widgets/Live Activity, AppIntents/Shortcuts, , etc.

But not all at once this time 🤣

App Store link: https://apps.apple.com/app/id671764434

alpennec,
@alpennec@iosdev.space avatar
  • AwesomeCache: I used it to cache weather data from Dark Sky. I'll now use Apple to fetch the wind forecasts and cache them in my Core Data store, if needed.

alpennec,
@alpennec@iosdev.space avatar

Weather in a boating logbook app makes totally sense, right? I'll start with a light integration of for now.

MuseumShuffle, (edited ) to SwiftUI
@MuseumShuffle@mastodon.social avatar

I think I found a time zone bug with WeatherKit!

I couldn't understand why my hourly charts had unexpected axis marks when I asked for weather for a location that has a time zone offset that is NOT in hour increments from GMT.

For example, Nepal is +5:45. I ask for weather for today, starting at midnight in Nepal, to 9 days from that.

The daily results start with 12AM in Nepal as expected. However, the hourly data starts at 12:45AM in Nepal.

Filed FB13055082

MuseumShuffle, to SwiftUI
@MuseumShuffle@mastodon.social avatar

Something has been bothering me for a while about WeatherKit.

If I want to create test data for something such as Measurement<UnitLength> it's trivial to do so.

But if I want to create Wind data for testing my UI I never could figure out how to do it easily because the only init it has is from a decoder.

I can find zero help for this online.

After much pain I came up with this solution, which works but is this approach right?

MuseumShuffle, (edited ) to random
@MuseumShuffle@mastodon.social avatar

I wrote a blog post about how I still can't believe that I wrote a weather app and how it made me a better developer.

https://chriswu.com/posts/swiftui/disbelief/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • InstantRegret
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • tacticalgear
  • ethstaker
  • cisconetworking
  • modclub
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • normalnudes
  • megavids
  • Leos
  • anitta
  • lostlight
  • All magazines