Skip to content

Instantly share code, notes, and snippets.

View tmyrden's full-sized avatar

Thomas Myrden tmyrden

  • Halifax, NS, Canada
View GitHub Profile
@tmyrden
tmyrden / CaptureSize.swift
Created March 25, 2022 16:38
Capture Size View Modifier
import SwiftUI
struct CaptureSizeModifier: ViewModifier {
var action: (CGSize) -> Void
func body(content: Content) -> some View {
content.background(
GeometryReader { geometry in
Color.clear
.onAppear {

Keybase proof

I hereby claim:

  • I am tmyrden on github.
  • I am tmyrden (https://keybase.io/tmyrden) on keybase.
  • I have a public key whose fingerprint is 12D3 F08D CB87 8FEA BFD1 5DAE 9AAF B139 9E7C 4394

To claim this, I am signing this object: