Skip to content

Instantly share code, notes, and snippets.

View DaniNotHere's full-sized avatar

DaniNotHere DaniNotHere

View GitHub Profile
@DaniNotHere
DaniNotHere / CoverFlip.swift
Created February 27, 2026 01:54 — forked from timi2506/CoverFlip.swift
CoverFlip
//
// CoverFlip.swift
// CoverFlip
//
// Created by Tim on 26.02.26.
//
import SwiftUI
struct CoverFlipTransition: AnimatableModifier {
Shader "Hidden/JumpFloodOutline"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags { "PreviewType" = "Plane" }
Cull Off ZWrite Off ZTest Always
@DaniNotHere
DaniNotHere / AppDelegate.swift
Created June 21, 2024 03:59 — forked from phatblat/AppDelegate.swift
Example of creating HKObserverQuery and enabling background delivery for multiple HKObjectType
@UIApplicationMain
final class AppDelegate: UIResponder, UIApplicationDelegate {
let healthKitManager = HealthKitManager()
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
if onboardingComplete {
healthKitManager.requestAccessWithCompletion() { success, error in
if success { print("HealthKit access granted") }
else { print("Error requesting access to HealthKit: \(error)") }
}