Skip to content

Instantly share code, notes, and snippets.

View tyirvine's full-sized avatar
🍄
Probably listening to music ...

Ty Irvine tyirvine

🍄
Probably listening to music ...
View GitHub Profile
@tyirvine
tyirvine / shorthand-example.swift
Created October 29, 2020 20:14
Swift Shorthand Example
Button(action: self.textField.value?.becomeFirstResponder()) {
Text("Bonk")
}
@tyirvine
tyirvine / main.yml
Last active January 27, 2021 06:41 — forked from shiena/main.yml
dotnet-format for github actions (on push) - C#
# This workflow ensures all code being pushed to your repo. is formatted
name: Auto-Format
# Controls when the action will run.
on:
push:
branches:
- "**"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@tyirvine
tyirvine / InactiveWindowTapHelper.swift
Created June 14, 2021 21:02
This registers clicks on a view in SwiftUI even when the window is not key or main
//
// InactiveWindowTapHelper.swift
//
// Created by Ty Irvine on 2021-06-14.
//
// This registers clicks on a view in SwiftUI even when the window is not key or main.
//
// Usage ⤵︎
/*
@tyirvine
tyirvine / .gitignore
Created November 4, 2021 07:01
.gitignore for Unity
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/