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)))
Swift/SwiftUI Question: App Store Connect API provides a gzip when the response is successful for a particular endpoint I am accessing.
How do I take this gzip and save the contents of it to a files app / sandbox directory / swift data, so that I can read it and view the contents? From what I understand, gzip is similar to a zip file?
So far my attempts to save it to files to read the contents have failed. It says “Inappropriate file type or format”.
How would you go about implementing a popup search menu like this? :think_bread:
Suppose I have a NSSearchField and want to make such popup menu to let the user choose some details about their search - for example, if they want to search by a package's name or description.
Or would there be a more appropriate, and completely different, solution? What do you think?
Is there anyone out there who knows a lot about accessibility on macOS that would be open to joining Cork’s Testing team?
I wanted to improve the accessibility of Cork drastically in the next release (there’s no accessibility at all right now 😢), but I know nothing about this topic.
If you haven’t heard of Cork before, you can get a quick overview here: https://corkmac.app
Back from sabbatical! More #CircuitPython and #SwiftUI content coming soon. Also info on how you can hire me to teach a bootcamp on these concepts or teach to faculty, leaving course material for use in their own classes. Feel free to share if you know educators who may be interested. https://youtu.be/DM8DUx1LkVg
WWDC24 is right around the corner. Before the excitement and rush of what's to come, I want to share some navigation fun facts and tips. None of this is new, having been discussed previously in sessions, etc. From talking with developers, these are parts of the system that are often overlooked, or forgotten about #21DaysOfSwiftUINavigation#SwiftUI This is all running on macOS Sonoma 14.4, Xcode 15.3
The last in this mini-series of NavSplitView constructions: all of these different types of destinations can be mixed and used at once. Notice the new example below where I use .navigationDestination to root-replace the detail column. However, if you're mixing and matching, don't cross the streams! There lies undefined behavior. For example, don't have the type of the selection binding match the type of the data argument to navigationDestination #21DaysOfSwiftUINavigation#SwiftUI
4 cont) This is an especially pernicious Undefined Behavior example. Can anyone explain why this is undefined behavior, and perhaps guess at what’s going wrong for this to break down? (Answer tomorrow) #21DaysOfSwiftUINavigation#SwiftUI