Skip to content

Instantly share code, notes, and snippets.

//
// Created by Adam Whitcroft on 2023-01-23.
//
import SwiftUI
struct SimpleDragGesture: View {
@State private var focussedItem: String = "middle"
@State private var offset = CGSize.zero
@State private var accumulatedOffset = CGSize.zero
//
// AppearanceSheet.swift
// PeePooBoobRelease
//
// Created by Adam Whitcroft on 2022-10-07.
//
import SwiftUI
struct AppearanceSheet: View {
//
// HierarchicalSymbols.swift
// Sandbox
//
// Created by Adam Whitcroft on 2022-10-10.
//
import SwiftUI
struct HierarchicalSymbols: View {
@AdamWhitcroft
AdamWhitcroft / Dropped-frames.swift
Last active October 2, 2022 14:12
Trying to diagnose why my scrollview is dropping frames when using core data
// Reference tweet - https://twitter.com/AdamWhitcroft/status/1576402418719281152
// See bottom of gist for things I've tried, recommendations welcome
// Core data ScrollView:
//
// For some reason, the top bounce-back of the scroll
// here drops frames and looks horrible.
// Video here https://twitter.com/AdamWhitcroft/status/1576402418719281152
NavigationView {
//
// Localization.strings
//
// This file holds my text strings and their keys, some examples below:
//
"entryBottle" = "Bottle";
"entryLeftBoob" = "Left boob";
"entryRightBoob" = "Right boob";