Skip to content

Instantly share code, notes, and snippets.

View dgazzoni's full-sized avatar

Décio Luiz Gazzoni Filho dgazzoni

View GitHub Profile
// Code (in app delegate)
func setupObservers() {
observations.append(
UserDefaults.standard.observe(
\UserDefaults.selectedPreset,
options: [.initial, .new],
changeHandler: selectedPresetChanged
)
)