Skip to content

Instantly share code, notes, and snippets.

View jordansinger's full-sized avatar

Jordan Singer jordansinger

View GitHub Profile
struct ContentView: View {
var body: some View {
VStack {
HStack {
Spacer()
Button { } label: {
Image(systemName: "power")
.resizable()
.aspectRatio(contentMode: .fill)
.padding()
@jordansinger
jordansinger / finder.swift
Created January 6, 2024 20:17
finder-visionos
import SwiftUI
struct ContentView: View {
@State var selection: Set<Int> = [0]
@State var search = ""
var body: some View {
NavigationView {
List(selection: self.$selection) {
Section(header: Text("Favorites")) {
@jordansinger
jordansinger / slack.swift
Created January 6, 2024 20:04
slack-visionos
import SwiftUI
struct ContentView: View {
@State var selection: Set<Int> = [0]
@State var search = ""
var body: some View {
TabView {
NavigationView {
List(selection: self.$selection) {
@jordansinger
jordansinger / Import from Airtable.json
Last active January 21, 2022 11:29
Importing from Airtable into Figma - Automator automation
{
"id": "kyiz0pkjsx75lgnm6wi",
"name": "Import from Airtable",
"description": "",
"color": "red",
"actions": [{
"id": "kyj1sgob42s5s6o8ef8",
"command": {
"name": "note",
"metadata": {
@jordansinger
jordansinger / lil-dice.tsx
Created October 19, 2021 19:43
lil dice FigJam widget
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 June 16, 2021 18:37
Original Apple logo in SwiftUI
import SwiftUI
struct ContentView: View {
var body: some View {
VStack(spacing: 0) {
Color.green
Color.green
Color.green
Color.yellow
Color.orange
@jordansinger
jordansinger / SidebarListStyle.swift
Created June 13, 2021 18:16
.listStyle(.sidebar)
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 February 20, 2021 18:30
iOS 6 Settings built in SwiftUI
//
// Settings.swift
// Settings
//
// Created by Jordan Singer on 2/20/21.
//
import SwiftUI
struct Settings: View {
// 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
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