Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Peng aoenth

  • Toronto, Canada
View GitHub Profile
View alignment-guides-tool.swift
// The SwiftUI Lab
// Website: https://swiftui-lab.com
// Article: https://swiftui-lab.com/alignment-guides
import SwiftUI
class Model: ObservableObject {
@Published var minimumContainer = true
@Published var extendedTouchBar = false
@Published var twoPhases = true
@santisbon
santisbon / Search my gists.md
Last active Oct 18, 2021
How to search gists
View Search my gists.md

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@khanov
khanov / Binary Tree Printer.swift
Last active Jul 14, 2021
Binary Tree ASCII Printer
View Binary Tree Printer.swift
import Foundation
// Ideally Node should be a struct.
// However Swift doesn't allow recursive value types at the moment.
class Node {
var left, right: Node?
var value: String
init(value: String = "") {