This is for anyone experienced with #SwiftUI in #macOS development.
I used MenuBarExtra to make a small status bar utility app. I wanted to add an onboarding view, and I've tried everything.
I can use a WindowGroup to have a window and a MenuBarExtra, but that would display an empty window even if you hide the onboarding view after it's done.
Any thoughts? Ideas? or do I have to abandon SwiftUI 🫠
ScrollKit 0.5.1 for #SwiftUI is out! 🚀 This version adds support for strict concurrency and fixes some bugs for the sticky header scroll view. If you want to create solid SwiftUI designs with sticky & stretchy headers, ScrollKit has you covered. https://github.com/danielsaidi/ScrollKit
If you are looking for a weather app that is simple and does not track your location, try Ducky Weather! One thing I have found in our research group is that the most popular free weather applications send your location to trackers and I wanted to create an app that does not do that. Because it uses NWS data, it is only available in the US.
More features to come but suggestions are welcome!
This is the 5th video in a 7 Part series on building a full #SwiftUI weather app using #WeatherKit.
In this video we will be adding the final forecast type and that is a 10 day daily forecast.
If I want to use String(localized:) to localize a variable, is this the best way? I can’t put it in directly like I used to with NSLocalizedString. In this case, the variable comes from Core Data, otherwise I could probably declare it directly as LocalizedStringResource. #Swift#SwiftUI#UIKit#Localization
While implementing the package previews, I ran across one state that Cork didn't have covered yet: when an app is already installed outside of Homebrew, and you try to install the Homebrew version.
Instead of getting stuck, you now get this status.
I was struggling to figure out a way to have just one selectable item in a List. I thought up elaborate functions that would compare the sets holding the UUIDs of the selection, optimized to shit…
And then I realized I could just make the selection not a collection :nkoFacepalm2:
A BHAG that just popped into my head: get involved enough with #iOS#swiftui development that I am upset when I don’t get a #WWDC invitation (or elated when I do!)
Today, I merged the basic support for Shortcuts into mainline Cork. After that, I decided to take on another challenge
I thought it would be cool to be able to see detailed info about a package before you install it. This feature actually used to be in Cork back in 2022! But I had to remove it… until now!
@swiftui@swift Exciting News! 🎉 Just dropped Part 34 of my "Let's Build WhatsApp clone Using SwiftUI and “firebase” playlist! 📺🛠️ Dive deeper into Swift development as we take our app to the next level. 🚀 Check it out now and let's code together! 🔗 https://www.youtube.com/watch?v=BYV5ZMG-71M#SwiftUI#iOSDev
I have come across something with the Observation framework that is confusing me so if there are any #SwiftUI Observation framework experts out there that can explain this to me, I would be forever grateful. Why I don’t have to define the object as a State object?
@swiftui@swift Exciting News! 🎉 Just dropped Part 33 of my "Let's Build WhatsApp clone Using SwiftUI and “firebase” playlist! 📺🛠️ Dive deeper into Swift development as we take our app to the next level. 🚀 Check it out now and let's code together! 🔗 https://www.youtube.com/watch?v=GV1NH7-XbVM#SwiftUI#iOSDev
I have added a shortcut for refreshing packages. Next step, I'll see if I can add a separate button to Cork itself for only refreshing packages without updating them!
(also, does anyone know why Shortcuts is showing the key for each LocalizedStringResource instead of the actual string? 🤔 see pic #2 for code)
I am moving up my release schedule for my 7 part #SwiftUI#WeatherKit series. Here are the latest two in the series.
Make your app shine with dynamic backgrounds hourly forecast and an updated UI.
Has anyone encountered this error before? I'm trying to test widgets, but the simulator doesn't start at all. I get no errors, not warnings, nothing in the console apart from the URL of the widget extension… it's weird. And Google is also not helping 🤔
To recap what I got working today in Cork (but I'm not promising that it's gonna be in the next release!):
Added three Shortcuts: Get installed Formulae, Casks or all Packages
"Get installed Formulae" allows you go only limit it to only manually installed packages. For some reason, doing this in the "Get installed Packages" crashes it even though it's the same system
Well, I wanted to use the App Store Connect API to download the CSV file of total payment for a particular month.
The API seems to only download what is provided from the create reports button (red box in image) which is not what I want; it doesn’t include a number of the total sales for a month once it has been paid. And adding each of the totals does not equal the correct payment amount.
The second image has an orange box that shows the accurate number. This is what the file looks like when using the download button in the green box in the first image.
there really aren't that many good looking #mastodon desktop clients sadly (outside of #macos but then they all look more or less the same because of #swiftui, not to say they don't look great)
I just realized that if you're formatting to an abbreviated weekday then VoiceOver (at least Ava and Zoe Premium) will only fully pronounce some of the days.
I guess it's because the ones that aren't pronounced are actual words with other meanings? 🤔
Text(oneShowDay.formatted(.dateTime.weekday(.abbreviated)))