diff --git a/DNSecure/Views/DetailView.swift b/DNSecure/Views/DetailView.swift index eed57cf..c8ecc7e 100644 --- a/DNSecure/Views/DetailView.swift +++ b/DNSecure/Views/DetailView.swift @@ -32,138 +32,7 @@ extension DetailView: View { .multilineTextAlignment(.trailing) } } - switch self.server.configuration { - case var .dnsOverTLS(configuration): - Section( - header: EditButton() - .foregroundColor(.accentColor) - .frame(maxWidth: .infinity, alignment: .trailing) - .overlay(Text("Servers"), alignment: .leading), - footer: Text("The DNS server IP addresses.") - ) { - ForEach(0.. some View { + var configuration = configuration + Section( + header: EditButton() + .foregroundColor(.accentColor) + .frame(maxWidth: .infinity, alignment: .trailing) + .overlay(Text("Servers"), alignment: .leading), + footer: Text("The DNS server IP addresses.") + ) { + ForEach(0.. some View { + var configuration = configuration + Section( + header: EditButton() + .foregroundColor(.accentColor) + .frame(maxWidth: .infinity, alignment: .trailing) + .overlay(Text("Servers"), alignment: .leading), + footer: Text("The DNS server IP addresses.") + ) { + ForEach(0..