Skip to content

Instantly share code, notes, and snippets.

Avatar

Jordan Singer jordansinger

View GitHub Profile
@jordansinger
jordansinger / Import from Airtable.json
Last active Jan 21, 2022
Importing from Airtable into Figma - Automator automation
View Import from Airtable.json
{
"id": "kyiz0pkjsx75lgnm6wi",
"name": "Import from Airtable",
"description": "",
"color": "red",
"actions": [{
"id": "kyj1sgob42s5s6o8ef8",
"command": {
"name": "note",
"metadata": {
@jordansinger
jordansinger / lil-dice.tsx
Created Oct 19, 2021
lil dice FigJam widget
View lil-dice.tsx
const { widget } = figma
const { Rectangle, AutoLayout, Frame, Text, useSyncedState, usePropertyMenu, useEffect, Ellipse } = widget
function Dot(props) {
let visible = props.visible
return (
<Ellipse
opacity={visible ? 1 : 0}
width={24}
height={24}
@jordansinger
jordansinger / AppleLogo.swift
Created Jun 16, 2021
Original Apple logo in SwiftUI
View AppleLogo.swift
import SwiftUI
struct ContentView: View {
var body: some View {
VStack(spacing: 0) {
Color.green
Color.green
Color.green
Color.yellow
Color.orange
View SidebarListStyle.swift
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
List {
Label("Airplane Mode", systemImage: "airplane")
.accentColor(.orange)
Label("Wi-Fi", systemImage: "wifi")
Label("Cellular", systemImage: "antenna.radiowaves.left.and.right")
@jordansinger
jordansinger / Settings.swift
Created Feb 20, 2021
iOS 6 Settings built in SwiftUI
View Settings.swift
//
// Settings.swift
// Settings
//
// Created by Jordan Singer on 2/20/21.
//
import SwiftUI
struct Settings: View {
View AppleMaps-part2.swift
// San Francisco: 37.7749, -122.4194
// New York: 40.7128, -74.0060
import SwiftUI
import MapKit // be sure to import MapKit
import PlaygroundSupport
struct ContentView: View {
@State var latitude = 37.7749
@State var longitude = -122.4194
View AppleTVControlCenter.swift
import SwiftUI
import PlaygroundSupport
struct AppleTV: View {
var body: some View {
ZStack {
// Image(uiImage: #imageLiteral(resourceName: "IMG_6281.JPG"))
// .resizable()
// .aspectRatio(contentMode: .fill)
Color.gray
View AppleMaps.swift
import SwiftUI
import MapKit // be sure to import MapKit
import PlaygroundSupport
struct ContentView: View {
var body: some View {
ZStack {
MapView()
VStack {
@jordansinger
jordansinger / iPod.swift
Created Jul 27, 2020
Swift Playgrounds iPod Classic
View iPod.swift
import SwiftUI
import PlaygroundSupport
struct iPod: View {
var body: some View {
VStack(spacing: 40) {
Screen()
ClickWheel()
Spacer()
}
View Sunset.swift
import SwiftUI
import PlaygroundSupport
struct Sunset: View {
@State var backgroundColor = Color.blue
@State var sunSetted = false
let sunGradient = [Color.yellow, Color.orange]
let moonGradient = [Color.gray, Color.black]
@State var alignment = Alignment.top