From fb29d006aa265e8085c11d64b379258aca44fa52 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 17 Jun 2019 07:20:39 -0500 Subject: [PATCH] Code formatting changes --- iOS/Settings/SettingsView.swift | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/iOS/Settings/SettingsView.swift b/iOS/Settings/SettingsView.swift index 1ca917abc..cf0ad70f3 100644 --- a/iOS/Settings/SettingsView.swift +++ b/iOS/Settings/SettingsView.swift @@ -10,8 +10,6 @@ import SwiftUI import Combine import Account - - struct SettingsView : View { @ObjectBinding var viewModel: ViewModel @State var subscriptionsImportAccounts: ActionSheet? = nil @@ -35,21 +33,13 @@ struct SettingsView : View { } Section(header: Text("ABOUT")) { - Text("About NetNewsWire") - PresentationButton(Text("Website"), destination: SafariView(url: URL(string: "https://ranchero.com/netnewswire/")!)) - PresentationButton(Text("Github Repository"), destination: SafariView(url: URL(string: "https://github.com/brentsimmons/NetNewsWire")!)) - PresentationButton(Text("Bug Tracker"), destination: SafariView(url: URL(string: "https://github.com/brentsimmons/NetNewsWire/issues")!)) - PresentationButton(Text("Technotes"), destination: SafariView(url: URL(string: "https://github.com/brentsimmons/NetNewsWire/tree/master/Technotes")!)) - PresentationButton(Text("How to Support NetNewsWire"), destination: SafariView(url: URL(string: "https://github.com/brentsimmons/NetNewsWire/blob/master/Technotes/HowToSupportNetNewsWire.markdown")!)) - Text("Add NetNewsWire News Feed") - } .foregroundColor(.primary) @@ -118,6 +108,8 @@ struct SettingsView : View { return ActionSheet(title: Text("Export Subscriptions..."), message: Text("Select the account to export out of."), buttons: buttons) } + // MARK: ViewModel + class ViewModel: BindableObject { let didChange = PassthroughSubject()