From 745ed02482b6d78a13934d2d595f382ebff001e6 Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkk669@users.noreply.github.com> Date: Thu, 5 May 2022 03:53:59 +0900 Subject: [PATCH] Remove deprecated SwiftUI APIs --- DNSecure/Views/ContentView.swift | 22 ++++++----- DNSecure/Views/DetailView.swift | 60 ++++++++++++++++-------------- DNSecure/Views/RuleView.swift | 63 +++++++++++++++++--------------- 3 files changed, 79 insertions(+), 66 deletions(-) diff --git a/DNSecure/Views/ContentView.swift b/DNSecure/Views/ContentView.swift index 3e832b9..4b9e7b7 100644 --- a/DNSecure/Views/ContentView.swift +++ b/DNSecure/Views/ContentView.swift @@ -133,14 +133,18 @@ extension ContentView: View { List { NavigationLink( "Instructions", - destination: HowToActivateView(isSheet: false), tag: -1, selection: self.$selection - ) - Section(header: Text("Servers")) { + ) { + HowToActivateView(isSheet: false) + } + Section { 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.") - ) { + Section { 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.") - ) { + Section { ForEach(0..