Issue #2: Moved local SwiftUI state to a view model.

This commit is contained in:
Benjamin Erhart 2026-04-14 18:20:30 +02:00
parent 3ec25bc247
commit 6b253a6843
4 changed files with 42 additions and 17 deletions

16
dns/ViewModel.swift Normal file
View file

@ -0,0 +1,16 @@
//
// ViewModel.swift
// dns
//
// Created by Benjamin Erhart on 14.04.26.
//
import Foundation
import Combine
class ViewModel: NSObject, ObservableObject {
@Published
var blocklist: BlocklistOption = .secure
}