mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-02-06 20:28:39 +01:00
23 lines
595 B
Swift
23 lines
595 B
Swift
import SwiftUI
|
|
|
|
struct AcknowledgmentsView: View {
|
|
|
|
var body: some View {
|
|
ScrollingTextView(
|
|
attributedString: NSAttributedString(
|
|
rtf: try! Data(contentsOf: Bundle.main.url(forResource: "Licenses", withExtension: "rtf")!),
|
|
documentAttributes: nil
|
|
)!
|
|
.addingAttribute(.foregroundColor, value: NSColor.labelColor)
|
|
)
|
|
.frame(minWidth: 600, minHeight: 500)
|
|
}
|
|
}
|
|
|
|
|
|
struct AcknowledgementsView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
AcknowledgmentsView()
|
|
}
|
|
}
|