Skip to content

Instantly share code, notes, and snippets.

@thejamulator
thejamulator / ShieldView.swift
Created October 21, 2025 20:51
Shield with crossbar and Fleur-de-lis type end ornaments
//
// Copyright (c) 2025 and Confidential to Eric Ford Consulting All rights reserved.
//
import SwiftUI
struct ShieldView: View {
let darkBlue = Color(red: 0.12, green: 0.12, blue: 0.73)
var body: some View {
Canvas { context, size in
@thejamulator
thejamulator / ShieldGradientFillView.swift
Created October 21, 2025 18:54
Fill the shield with a gradient
//
// Copyright (c) 2025 and Confidential to Eric Ford Consulting All rights reserved.
//
import SwiftUI
struct ShieldGradientFill: View {
let darkBlue = Color(red: 0.12, green: 0.12, blue: 0.73)
var body: some View {
Canvas { context, size in
@thejamulator
thejamulator / HighlightedControlPointsView.swift
Created October 21, 2025 17:36
Add all of the quad curves and highlight their control points
//
// Copyright (c) 2025 and Confidential to Eric Ford Consulting All rights reserved.
//
import SwiftUI
struct HighlightedControlPoint: View {
let darkBlue = Color(red: 0.12, green: 0.12, blue: 0.73)
var body: some View {
Canvas { context, size in
//
// Copyright (c) 2025 and Confidential to Eric Ford Consulting All rights reserved.
//
import SwiftUI
struct PrototypeShieldView2: View {
let darkBlue = Color(red: 0.12, green: 0.12, blue: 0.73)
var body: some View {
Canvas { context, size in
@thejamulator
thejamulator / PrototypeShieldView.swift
Created October 20, 2025 19:46
Step 1 in a Canvas tutorial drawing a picture of a shield
//
// Copyright (c) 2025 and Confidential to Eric Ford Consulting All rights reserved.
//
import SwiftUI
struct PrototypeShieldView: View {
let darkBlue = Color(red: 0.12, green: 0.12, blue: 0.73)
var body: some View {
Canvas { context, size in