fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.8K
active users

#swiftui

54 posts39 participants8 posts today

Cork version 1.5.6 is out.

This update includes a complete rewrite of the Homebrew pinning system in Swift for 20x performance gains, pinning from sidebar, manual update checking, and fixes for many crashes.

See open.substack.com/pub/corkapp/ for more info.

Buy Cork to support its development: corkmac.app

Join the Discord community: discord.gg/kUHg8uGHpG

See the source code: github.com/buresdv/Cork

Cork: The Ultimate Homebrew Companion · Cork 1.5.6 Out: Big ChangesBy David Bureš

Here's a shocker from Building a workout app for iPhone and iPad developer.apple.com/documentat

import Combine

@Observable final class CountDownManager {
var timeRemaining: TimeInterval = 3
var duration: TimeInterval = 3

private let timerFinishedSubject = PassthroughSubject<Void, Never>()
var timerFinished: AnyPublisher<Void, Never> {
timerFinishedSubject.eraseToAnyPublisher()
}

And the usual heap leak:
@State private var manager = CountDownManager()

Apple Developer DocumentationBuilding a workout app for iPhone and iPad | Apple Developer DocumentationStart a workout in iOS, control it from the Lock Screen with App Intents, and present the workout status with Live Activities.

SwiftUIKit 6.0 is out! 🚀 This is a huge clean-up that removes many components that are extracted to separate packages. The future of this package will instead be to extend native types, to make #SwiftUI even more capable. You can read more about this in the release notes.

github.com/danielsaidi/SwiftUI

This version removes all deprecations, which means that many parts of the library are no longer available.
Most components have been extracted into separate packages. See this page for my various o...
GitHubRelease 6.0.0 · danielsaidi/SwiftUIKitThis version removes all deprecations, which means that many parts of the library are no longer available. Most components have been extracted into separate packages. See this page for my various o...
Continued thread

Added some accessory buttons for opening the associated page on a streaming service's site, along with a few other minor changes. Tomorrow let's update the order to match the user’s (future) preferences. See you then!

🔜 Tomorrow’s stream: youtube.com/live/L6olC9I9rZg
⏮️ Playlist so far: youtube.com/playlist?list=PLRx
📲 Download Jiiiii: apps.apple.com/app/apple-store

Continued thread

I'm making a seasonal anime guide app, in the open for all to experience and learn from.

Shorter stream today, but let's add season links to the new release set UI on the web!

#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #SwiftLang #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush

Come chill with me: youtube.com/live/cvHgv7Kq05Q

Is @ _disfavoredOverload something we shouldn't use?

In ShapeUp I want to have these two subscripts
rect[RectAnchor.topLeft] -> CGPoint
rect[RelativeCorner.topLeft] -> Corner

but when you use:
rect[.topLeft] it's ambiguous

I want it to default to CGPoint and only use Corner if needed by the context. Is there a better way?

Continued thread

Finally have a way to choose which release set you wanna view dates for on the web! Tomorrow, let's tweak it a bit more and build the same UI within the app. See you then!

🔜 Tomorrow’s stream: youtube.com/live/cvHgv7Kq05Q
⏮️ Playlist so far: youtube.com/playlist?list=PLRx
📲 Download Jiiiii: apps.apple.com/app/apple-store

So, let's say I have three horizontal views and I want to use the new corner concentric radius. How do I give the middle one, that's not touching any edge, the same radius as the other two?

.background(color, in: .rect(corners: .concentric(), isUniform: true))

This is what the #swiftUI glass button style looks like on tvOS 26 beta 4.

Note the weird, off-center focus effect, half-circle instead of continuous rounded corners(!), lack of legibility over the background (way worse in person than in this video), lack of any swipe feedback, and broken text transition when the numeric label changes.

Somehow the glass buttons in Apple’s first party apps don’t have any of these problems. What’s their secret?