Skip to content

Instantly share code, notes, and snippets.

import SwiftUI
struct NewStopView: View {
let stop: Model.Stop
var body: some View {
Text("New Layout").font(.title)
RouteLayout(spacing: 8) {
ForEach(stop.routes ?? []) { route in
RouteView(route: route)
import SwiftUI
struct RegularEventCell: View {
let color: Color
let title: String
let description: String?
var body: some View {
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)
//
// ContentView.swift
// ScrollViewTest
//
// Created by Bernstein, Joel on 7/21/20.
//
import SwiftUI
struct ContentView: View {
//
// ContentView.swift
// Shared
//
// Created by Bernstein, Joel on 7/15/20.
//
import SwiftUI
struct ContentView: View {
//
// ContentView.swift
//
//
// Created by Bernstein, Joel on 7/4/20.
//
import SwiftUI
struct ElementModel: Identifiable
//
// ContentView.swift
//
//
// Created by Bernstein, Joel on 7/4/20.
//
import SwiftUI
struct ContentView: View
import SwiftUI
struct ContentView: View
{
@State var angle: CGFloat = 0
let animation = Animation.linear(duration: 10).repeatForever(autoreverses: false)
var body: some View
{
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)
//
// ContentView.swift
// BreatheUI WatchKit Extension
//
// Created by Joel Bernstein on 6/24/19.
// Copyright © 2019 Joel Bernstein. All rights reserved.
//
import SwiftUI