Skip to content

Instantly share code, notes, and snippets.

View MarqueIV's full-sized avatar

Mark A. Donohoe MarqueIV

View GitHub Profile
@MarqueIV
MarqueIV / Example_Complexy.swift
Last active August 20, 2023 21:00 — forked from IanKeen/Example_Complex.swift
PropertyWrapper: @transaction binding for SwiftUI to make changes to data supporting commit/rollback
struct User: Equatable {
var firstName: String
var lastName: String
}
@main
struct MyApp: App {
@State var value = User(firstName: "", lastName: "")
@State var showEdit = false
@MarqueIV
MarqueIV / ExampleApp.swift
Last active May 30, 2023 21:56
Issue with animations when both adding an item while also trying to scroll to the end of the list
import SwiftUI
import Combine
@main
struct TestApp: App {
let itemManager = ItemManager()
var body: some Scene {
WindowGroup {
launchctl stop com.mcafee.menulet
launchctl stop com.mcafee.reporter
launchctl remove com.mcafee.menulet
launchctl remove com.mcafee.reporter
sudo su -
launchctl stop com.mcafee.virusscan.fmpd
launchctl stop com.mcafee.ssm.ScanManager