blob: 441e9f4c97d4d7e96b0cf05c6a3643300bd81900 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//
// SettingsViewModel.swift
// MullvadVPN
//
// Created by Jon Petersson on 2024-10-03.
// Copyright © 2024 Mullvad VPN AB. All rights reserved.
//
import MullvadSettings
struct SettingsViewModel {
private(set) var daitaSettings: DAITASettings
private(set) var multihopState: MultihopState
init(from tunnelSettings: LatestTunnelSettings = LatestTunnelSettings()) {
daitaSettings = tunnelSettings.daita
multihopState = tunnelSettings.tunnelMultihopState
}
}
|