I turned 74 today so just a reminder that my #Swift / #SwiftUI course is on sale with the BIRTHDAY coupon code. Just $20 this week. https://iosdev.space/@StewartLynch/114400487231915218
I turned 74 today so just a reminder that my #Swift / #SwiftUI course is on sale with the BIRTHDAY coupon code. Just $20 this week. https://iosdev.space/@StewartLynch/114400487231915218
Simple #swiftui shader to represent ideas in Dream Machine
My iOS app made it to the App Store, please help me get the word out and boost
Journelly: like tweeting but for your eyes only (offline / powered by plain text)
https://lmno.lol/alvaro/journelly-like-tweeting-but-for-your-eyes-only
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.
Looking to stay limber at your desk?
I’m launching the TestFlight soon! Join the list in the replies!
#swiftui #swift #iosdev #indiedev #BuildInPublic
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 https://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!
If you are starting a new project soon, or want to finally adopt modern Apple APIs, you should check out this article that has all the right links to give you the data you need to decide which minimum deployment target you should choose! #iOSDev #SwiftUI #Xcode #IndieDev
From: @telemetrydeck
https://social.telemetrydeck.com/@telemetrydeck/114422836909147174
Finally I can move the cheese into the volume! Great talk by @harlan about coordinate spaces.
I'm publishing Redline, my visualization library for #SwiftUI that helps to debug layouts by visualizing positions, sizes, spacings and alignment guides: https://github.com/robb/Redline
I was also really excited back in 2023 when Sima pitched the pack iteration feature as I was trying to build the AnimatablePack feature in ShapeUp and it was exactly what I needed to get it done.
Pitch:
https://forums.swift.org/t/pitch-enable-pack-iteration/66168
Explainer Post:
https://www.swift.org/blog/pack-iteration/
ShapeUp AnimatablePack feature:
https://github.com/ryanlintott/ShapeUp?tab=readme-ov-file#animatablepack
OK, looks like this time zone thing is actually expected behavior, though it was a change made in iOS 18 and macOS 15, thus the different behavior in iOS 17.
https://iosdev.space/@alpennec/114419280706342209
#SwiftUI
And the solution is up for today's "T-Buddy" #SwiftUI final exam, working with the @mbta.com API to access transit data, parse returned JSON, display it in an elegant and responsive UI, and save last line viewed using SwiftData. https://youtu.be/yBwV_LSoSCQ Hack on!
@bwebster I would think that explicitly specifying a timeZone on the FormatStyle should override the environment (as it apparently did), so I'm pretty sure this is an actual #SwiftUI bug.
However, I wouldn't manually do that, but rather adjust the locale or timezone environment anyways. https://mastodon.social/@helge/113913529886141300
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.
Cork version 1.5.4 is out.
This update includes a lot of small and big fixes, along with UX improvements.
Read the changelog: https://open.substack.com/pub/corkapp/p/cork-154-out-small-fixes?r=2vioyx&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true