Skip to content

Instantly share code, notes, and snippets.

View lorenzofiamingo's full-sized avatar
👻
Code?

Lorenzo Fiamingo lorenzofiamingo

👻
Code?
View GitHub Profile
@lorenzofiamingo
lorenzofiamingo / actionTabBarItem.swift
Created May 2, 2020 20:51
An implementation for making tab bar item action
struct ContentView: View {
@State private var selection = 0
private var actionSelection: Binding<Int> {
Binding<Int>(get: {
self.selection
}) { (newValue: Int) in
if newValue == 1 {
// put action here
{
"basics": {
"name": "Lorenzo Fiamingo",
"label": "Web Developer, iOS Developer, Electronic Engineer",
"picture": "https://media-exp1.licdn.com/dms/image/C4E03AQFF-ufswGL7bw/profile-displayphoto-shrink_200_200/0/1591879723268?e=1620864000&v=beta&t=eSkCC9s9Zn2FF2L4vUldMT_Ij4-4-sXaZ81QY07Daro",
"email": "[email protected]",
"phone": "+39 329 8015551",
"website": "https://lorenzofiamingo.com",
"summary": "I’m a young man from Calabria that aims to succeed in engineering. I started programming in high school, and I really love it. At university, I learned C on K&R, and I really get into it... so I started studying from myself and using different programming languages.",
"location":