summaryrefslogtreecommitdiff
path: root/Jel/Views/Settings/LicenseItemView.swift
blob: 67573c8c3c69e5460221f9a692ce32c91fe85e9a (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
29
//
//  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)!)
        .bold()
      
      ExpandableText(license)
        .multilineTextAlignment(.leading)
    }
  }
}

//#Preview {
//    LicenseItemView()
//}