Skip to content

Instantly share code, notes, and snippets.

@thexande
thexande / MatchedGeometryEffectDemo.swift
Created July 11, 2020 00:23
A playground showing how the .matchedGeometryEffect modifier works.
import SwiftUI
import PlaygroundSupport
final class Item: Identifiable {
let color: Color
let id = UUID()
var displayDetail: Bool
init(color: Color, displayDetail: Bool = false) {
self.color = color
self.displayDetail = displayDetail
@asugai
asugai / Install composer on Amazon AMI running on EC2
Last active May 14, 2024 15:14
Install composer on Amazon AMI running on EC2
$ cd ~
$ sudo curl -sS https://getcomposer.org/installer | sudo php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
then you can run
$ sudo composer install