Fabio giolito biography

Facebook Reactions in SwiftUI

About 60 Lines. I’d never guess you could do all that in so few lines. With those transitions and interruptible animations?

I spent the weeks following WWDC looking into Swift UI. At first I thought it was really basic and you couldn’t do much custom work. But when you start building components from scratch you get how flexible it is.

This is a prototype built in 1 hour before going to bed. I woke up to it blowing up on Twitter (at least for my engagement average).

And here’s the code, if you know some things about SwiftUI and programming it should be understandable. But here’s the overview:

UI is controlled by state. Am I dragging my finger from the Like Button? Then show/hide reactions. Which reaction is selected? Make that one bigger.

Then it’s just a matter of changing those states. When I start dragging, change the isDragging to true. Then based on how far I’ve dragged calculate which reaction is selected.

Code:
https://gist.github.com/fabiogiolito/424e1d68766fc054ad4bf6fd3506e9c3

Tweet:
https://twitter.com/fabiogiolito/status/114

The Research Group on Ancient Philosophy (abbrev. GPFA) was recently created (2022). The formation of the GPFA consolidates a joint research work that, in recent years, has been developed by its members within the framework of IFILNOVA. The purpose of the GPFA is to study the questioning of values ​​(such as the good, the beautiful and the true) in ancient philosophical thought and the way in which the reflection on values ​​throughout the history of the West was carried out through a constant reading of ancient texts. Our study of ancient philosophical thought is not only based on the interpretation of ancient texts of a strictly philosophical nature, but also seeks to extend to all ancient texts (literary, historical, scientific, religious, and so forth) which, as such, possess a philosophical dimension, which challenge philosophical texts or with which the latter enter, explicitly or inexplicitly, into discussion. Similarly, our research on the modern reception of ancient philosophical thought is not restricted to the reading of the latter carried out in modern texts of a stric

Web3 with Svelte and Moralis

The goal of this app is to create a website where you can Sign In with an Ethereum Wallet using MetaMask, and create a profile. This should cover enough of how to use Svelte and Moralis so you can use as a starting point for your app.

Why Svelte (and not React)

Svelte

Why Moralis

Moralis is a Backend-as-a-service that also gives you simple APIs to work with multiple chains. Authentication, Database, Storage and Cloud functions are part of what you get out of the box. Having all that on the same place makes things faster to setup and develop.


Setting up the project

Let's jump straight into terminal and start a new SvelteKit project.

  1. If you don't have NPM installed read this.
  2. Adding Tailwind is optional of course, but I enjoy using it. I won't focus on styles to keep things brief.

Adding Moralis

You'll need to create an account on Moralis, then create a server. Add your server details to a file on the root of your project.

On terminal, stop the server with then restart it with to pick up these variables.

Then add Moralis s

Copyright ©oilpike.pages.dev 2025