shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

288
active users

#swiftui

25 posts23 participants2 posts today

When using an AngularGradient as a stroke in SwiftUI, it seems that Color.clear is treated as transparent black.

For example:

Rectangle()
.stroke(
AngularGradient(
colors: colors,
center: .center,
startAngle: .degrees(0),
endAngle: .degrees(60)
),
lineWidth: 6
)

If colors is: [.clear, .red, .clear], it fades through black, but if colors is [.red.opacity(0), .red, .red.opacity(0)], it does not.

This isn't a problem for LinearGradient, or when used as a fill. Image attached.

This week’s winner of the “My Mac Builds Apps” sticker is from the Land of Lakes! Want one? Bsky post what you’ve built from bit.ly/prof-g-swiftui with the hashtag #BuiltWithProfG. Hacking worldwide from Chestnut Hill to the World. #SwiftUI for the goodness! And #STEM educators - I’m available to run professional development bootcamps to bring your team up to speed on SwiftUI, complete with curricula and best practice ideas. Code on!

So apparently trying to use SwiftUI's Text element with a Date.FormatStyle that uses a time zone is broken on macOS 15 and iOS 18. 🤦‍♂️

Here's the same code running on iOS 18 and iOS 17. Am I missing something here or is this just plain broken? #SwiftUI

Hackers on their "First-Shot Final Exam". Use the MBTA API to build "T-Buddy". JSON Parsing, SwiftData, lots of UI & Custom Data Structures. The last in-class challenge of our Zero to Full Stack Semester of #SwiftUI Hiring junior devs? Send your info my way & I'll pass it on.