blob: d7dca792d7177387bbf3d3d2502e90b8935db761 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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()
//}
|