Was a workaround for iOS 15. No longer required. Signed-off-by: kingbri <bdashore3@proton.me>
30 lines
824 B
Swift
30 lines
824 B
Swift
//
|
|
// PluginInfoAboutView.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 4/2/23.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct PluginInfoAboutView<P: Plugin>: View {
|
|
@ObservedObject var selectedPlugin: P
|
|
|
|
var body: some View {
|
|
Section("Description") {
|
|
VStack(alignment: .leading, spacing: 10) {
|
|
if let pluginAbout = selectedPlugin.about {
|
|
if pluginAbout.last == "\n" {
|
|
Text(pluginAbout.dropLast())
|
|
} else {
|
|
Text(pluginAbout)
|
|
}
|
|
}
|
|
|
|
if let pluginWebsite = selectedPlugin.website {
|
|
Link("Website", destination: URL(string: pluginWebsite) ?? URL(string: "https://kingbri.dev/ferrite")!)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|