Files
xcodesApp-mirror/Xcodes/Frontend/About/AcknowledgementsView.swift
2024-02-20 13:14:20 +02:00

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()
}
}