Laz

@idevecono
42 Followers
167 Following
84 Posts
Making apps; Soro for Sonos & Remu for Roku
Soro for Sonoshttps://apps.apple.com/ca/app/soro-for-sonos/id1550457805
Couple months ago started working on rebooting my old Songfeed project. Songfeed tracks all the new songs added to the playlists you follow on Apple Music (and Spotify).
Beta: https://testflight.apple.com/join/GwmbENwr

New blog post. Implementing onChange(anyOf:initial:_:)

In SwiftUI, the onChange(of:initial:_:) modifier performs an action when the given value changes. A limitation of this modifier is that it only accepts a single value. If you want to perform the same action in response to multiple changes, you’ll usually need multiple modifiers.

https://mattcomi.com/posts/onchange_anyof/

onChange(anyOf:initial:_:)

In SwiftUI, the onChange(of:initial:_:) modifier performs an action when the given value changes. A limitation of this modifier is that it only accepts a single value. If you want to perform the same action in response to multiple changes, you’ll usually need multiple modifiers. .onChange(of: firstName) { saveUser() } .onChange(of: lastName) { saveUser() } The Workaround If the values are of the same type, you can put them in an array:

Latest Soro is now available on the App Store. Completely redesigned to better control your Sonos system and browse your music services.
What's new:
- Liquid glass design with updated UX for more intuitive speaker control and music browsing
- Support for (most) Sonos music services, both in-app and via Shortcuts actions
- Updated Shortcuts actions that are both more powerful and easier to configure

https://apps.apple.com/us/app/soro-for-sonos/id1550457805

#showcase25

Reminder, you do not need a crazy and risky and super expensive 19m diameter tunnel to provide 99% of the transport capacity the premier of Ontario is talking about on the 401 corridor -- you can easily extend the existing subway.

https://nextmetro.substack.com/p/a-real-solution-to-highway-401-congestion

Toronto: A Real Solution to Highway 401 Congestion — an Express Subway.

A subway to Pickering makes much more sense than a 401 Tunnel.

Next Metro.

By the way, if your iOS ships #AppShortcuts with a custom background tile color (for the Shortcuts app), its most likely that it only works on iPhone and not iPad.

I was able to get it to work on iPad by making a duplicate entry in the info plist for “CFBundleIcons" to be “CFBundleIcons~ipad" because I remembered about "Device-Specific Keys" from this article.

So now my background tiles show up green on iPadOS Shortcuts app.

#SwiftUI #iOSDev #AppIntents #Shortcuts

https://developer.apple.com/documentation/bundleresources/managing-your-app-s-information-property-list

Managing Your App’s Information Property List | Apple Developer Documentation

Create and customize an information property list file for your app using Xcode.

Apple Developer Documentation
PSA: if you have an app that includes Control Center widgets for iOS 18 but still supports iOS 17 or earlier, you have to set up your WidgetBundle in a specific way, otherwise the widgets will stop working on versions of iOS prior to 18. Here’s an answer in the developer forums describing how to do it properly: https://forums.developer.apple.com/forums/thread/759670?answerId=795557022#795557022
WidgetBundle with ControlWidget do… | Apple Developer Forums

First time any of my apps will support a new iOS feature on day 1. Plus brand new frontend.
I’m really excited to announce the release of @menubox, Alex Hay’s last app. Designed to provide beautiful custom menus for use in your advanced Shortcuts. Menu Items are fully customisable, with custom icons, as well as additional data fields. https://menubox.app

I just released ButtonKit 0.4.0 ; including the external trigger API.

Ever dreamt of a SwiftUI Button that supports Asynchronous, Throwable, with animations, progress support, and that can be triggered externally?

Search no more!

https://github.com/Dean151/ButtonKit/releases/tag/0.4.0

#SwiftUI #OpenSource #iOSDev

Release 0.4.0 · Dean151/ButtonKit

New Features External Triggers: trigger a button behavior, keeping free progress & error animations from an external action (fixes #7) Breaking Changes Swift 5.7 and 5.8 are no longer supported ...

GitHub
Apologies, authentication is not currently functioning properly due to additional requirements Spotify needs. Please send a feedback via the app so I can add you to the tester list.