summaryrefslogtreecommitdiff
path: root/Jel/Views/Settings/LicenseItemView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Jel/Views/Settings/LicenseItemView.swift')
-rw-r--r--Jel/Views/Settings/LicenseItemView.swift28
1 files changed, 28 insertions, 0 deletions
diff --git a/Jel/Views/Settings/LicenseItemView.swift b/Jel/Views/Settings/LicenseItemView.swift
new file mode 100644
index 0000000..d7dca79
--- /dev/null
+++ b/Jel/Views/Settings/LicenseItemView.swift
@@ -0,0 +1,28 @@
+//
+// LicenseItemView.swift
+// Jel
+//
+// Created by zerocool on 2/23/24.
+//
+
+import SwiftUI
+import ExpandableText
+
+struct LicenseItemView: View {
+ var name: String
+ var url: String
+ var license: String
+
+ var body: some View {
+ VStack(alignment: .leading) {
+ Link(name, destination: URL(string: url)!)
+
+ ExpandableText(license)
+ .multilineTextAlignment(.leading)
+ }
+ }
+}
+
+//#Preview {
+// LicenseItemView()
+//}