2020-07-06 22:30:32 +02:00
|
|
|
//
|
|
|
|
// SettingsAboutView.swift
|
|
|
|
// NetNewsWire-iOS
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 9/16/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import SwiftUI
|
|
|
|
import Combine
|
|
|
|
|
|
|
|
struct SettingsAboutView: View {
|
|
|
|
|
|
|
|
@StateObject var viewModel = SettingsAboutModel()
|
|
|
|
|
|
|
|
var body: some View {
|
|
|
|
GeometryReader { geometry in
|
|
|
|
List {
|
|
|
|
Text("NetNewsWire").font(.largeTitle)
|
2020-07-07 08:52:55 +02:00
|
|
|
AttributedStringView(string: self.viewModel.about, preferredMaxLayoutWidth: geometry.size.width - 20)
|
2020-07-06 22:30:32 +02:00
|
|
|
Section(header: Text("CREDITS")) {
|
|
|
|
AttributedStringView(string: self.viewModel.credits, preferredMaxLayoutWidth: geometry.size.width - 20)
|
|
|
|
}
|
|
|
|
Section(header: Text("THANKS")) {
|
|
|
|
AttributedStringView(string: self.viewModel.thanks, preferredMaxLayoutWidth: geometry.size.width - 20)
|
|
|
|
}
|
|
|
|
Section(header: Text("DEDICATION"), footer: Text("Copyright © 2002-2020 BrentSimmons").font(.footnote)) {
|
|
|
|
AttributedStringView(string: self.viewModel.dedication, preferredMaxLayoutWidth: geometry.size.width - 20)
|
|
|
|
}
|
|
|
|
}.listStyle(InsetGroupedListStyle())
|
|
|
|
}
|
2020-07-07 08:52:55 +02:00
|
|
|
.navigationTitle(Text("About"))
|
2020-07-06 22:30:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
struct SettingsAboutView_Previews: PreviewProvider {
|
|
|
|
static var previews: some View {
|
|
|
|
SettingsAboutView()
|
|
|
|
}
|
|
|
|
}
|