eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

218
active users

#swiftui

8 posts8 participants0 posts today
Continued thread

All of these animations are randomized, so every time I see them they're slightly different.

For this one I took the super cute illustration from @raphaellopes, isolated some elements like the background blobs and shines, and then replaced them in code #SwiftUI

Here's some other details that I bet most won't ever notice, but (for the sake of my career) I hope some will _feel it_:

We've added subtle animations to some of our illustrations, like this background and shines, as well as some hover effects on the cards that accept a click (design by the master Marcelo Marfil, built with #SwiftUI)

Like I promised a few days ago, here’s the discount code for Cork to celebrate my creator's birthday tomorrow!

HBi2025

It will be valid from tomorrow, June 1st, until June 8th 😊

Website: corkmac.app

mstdn.social/@CorkApp/11457970

I’d really appreciate if you shared this so as many people as possible can take advantage of the 50% discount!

corkmac.appCork: The Homebrew GUI for macOS

I've written a new book called Escape from Tutorial Hell.

The book is complete, but not fully edited, so I'm offering a pre-release deal. For US$35, you get the first two of six sections, and you'll get the complete book when it comes out late in June. Wait until then, and it will be US$50.

Read all the details at troz.net/post/2025/new-book:-e where you can also access a free sample.

When we wrap content in a ScrollView to support larger text on iOS, it adds bounce behavior even when the content fits with default settings. To avoid it, and still allow scrolling when needed, we can apply .scrollBounceBehavior(.basedOnSize), introduced in SwiftUI in iOS 16.4.

I wrote a short post with visual examples and a brief explanation of how scrollBounceBehavior(.basedOnSize) works in practice: nilcoalescing.com/blog/EnableS

Day 1 of 100 Days of SwiftUI was all about variables and constants.

Suprising items:

You don't explicitly declare the data type (you can tho). Swift just decides on the data type based on the initial value. I much prefer explicit assignment myself.

The playground's ability to "play" specific lines and see the results in the right hand pane is nice.

As I'm trying to learn, XCode is giving me the answer via intellisense. Need to turn that off.