diff options
author | Shav Kinderlehrer <[email protected]> | 2024-02-23 23:54:13 -0500 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2024-02-23 23:54:13 -0500 |
commit | 4f041f9020fe3069c6af08cc8c7d9ec26f3b4937 (patch) | |
tree | 27ec0f81f0a810347d6ba2c5756bba19f9237f41 /Jel/Views/Settings/LicenseItemView.swift | |
parent | 33b07566cbc07295131e9fe0e14643fbd9c5d14a (diff) | |
download | jel-4f041f9020fe3069c6af08cc8c7d9ec26f3b4937.tar.gz jel-4f041f9020fe3069c6af08cc8c7d9ec26f3b4937.zip |
Add license page
Diffstat (limited to 'Jel/Views/Settings/LicenseItemView.swift')
-rw-r--r-- | Jel/Views/Settings/LicenseItemView.swift | 28 |
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() +//} |