Skip to content

Instantly share code, notes, and snippets.

View freak4pc's full-sized avatar
🤓

Shai Mishali freak4pc

🤓
View GitHub Profile
@dkun7944
dkun7944 / ContentView.swift
Created July 31, 2023 03:36
AirDrop iOS 17 Swift.Shader Animation
//
// ContentView.swift
// Airdrop Demo
//
// Created by Daniel Kuntz on 7/30/23.
//
import SwiftUI
struct ContentView: View {
@DavidBrunow
DavidBrunow / XCTest+AssertStandardSnapshots.swift
Last active December 2, 2023 21:28
Helper Code for Snapshot Testing
import AccessibilitySnapshot
import SnapshotTesting
import SwiftUI
import XCTest
extension Snapshotting where Value == UIViewController, Format == UIImage {
fileprivate static func standardImage(
on viewImageConfig: ViewImageConfig,
perceptualPrecision: Float = 0.98,
precision: Float = 0.995
@SwiftyAlex
SwiftyAlex / squishybuttonthing.swift
Created April 20, 2024 15:20
squishybuttonthing
// Credit to Raffi for the design! https://twitter.com/raffichill/status/1781492309500027206
struct SquishyButtonThing: View {
@State var expanded: Bool = false
var body: some View {
VStack {
Spacer()
VStack {