Skip to content

Instantly share code, notes, and snippets.

Avatar

Joel Bernstein CastIrony

View GitHub Profile
View ContentView.swift
import SwiftUI
struct RegularEventCell: View {
let color: Color
let title: String
let description: String?
var body: some View {
View ListTestView.swift
import SwiftUI
struct ListTestView: View {
@State private var users = ["Paul", "Taylor", "Adele"]
var body: some View {
NavigationView {
List {
ForEach(users, id: \.self) { user in
Text(user)
View ContentView.swift
//
// ContentView.swift
// ScrollViewTest
//
// Created by Bernstein, Joel on 7/21/20.
//
import SwiftUI
struct ContentView: View {
View ContentView.swift
//
// ContentView.swift
// Shared
//
// Created by Bernstein, Joel on 7/15/20.
//
import SwiftUI
struct ContentView: View {
View ContentView.swift
//
// ContentView.swift
//
//
// Created by Bernstein, Joel on 7/4/20.
//
import SwiftUI
struct ElementModel: Identifiable
View ContentView.swift
//
// ContentView.swift
//
//
// Created by Bernstein, Joel on 7/4/20.
//
import SwiftUI
struct ContentView: View
View ContentView.swift
import SwiftUI
struct ContentView: View
{
@State var angle: CGFloat = 0
let animation = Animation.linear(duration: 10).repeatForever(autoreverses: false)
var body: some View
{
View ContentView.swift
import SwiftUI
struct ContentView: View
{
@State var angle: CGFloat = 0
let colors: [Color] = [ .red, .orange, .yellow, .green, .blue, .purple ]
let columns = [ GridItem(.adaptive(minimum: 140), alignment: .leading) ]
let animation = Animation.linear(duration: 10).repeatForever(autoreverses: false)
View ContentView.swift
//
// ContentView.swift
// BreatheUI WatchKit Extension
//
// Created by Joel Bernstein on 6/24/19.
// Copyright © 2019 Joel Bernstein. All rights reserved.
//
import SwiftUI
@CastIrony
CastIrony / watspec.txt
Created Mar 21, 2019
WAT Specification 1.0
View watspec.txt
WAT is a Brainfuck variant,
+ -> WAT
- -> WAAT
> -> WAAAT
< -> WAAAAT
. -> WAAAAAT
, -> WAAAAAAT
[ -> WAAAAAAAT
] -> WAAAAAAAAT
You can’t perform that action at this time.