Skip to content

Instantly share code, notes, and snippets.

Avatar

Décio Luiz Gazzoni Filho swineone

View GitHub Profile
View observer.swift
// Code (in app delegate)
func setupObservers() {
observations.append(
UserDefaults.standard.observe(
\UserDefaults.selectedPreset,
options: [.initial, .new],
changeHandler: selectedPresetChanged
)
)
You can’t perform that action at this time.