mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Conform URL to ExpressibleByStringLiteral (#1214)
This commit is contained in:
@@ -120,7 +120,7 @@ class MediaPreviewItem: NSObject, QLPreviewItem {
|
||||
// MARK: - Previews
|
||||
|
||||
struct PreviewView_Previews: PreviewProvider {
|
||||
static let previewURL = URL(staticString: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf")
|
||||
static let previewURL: URL = "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
|
||||
static let previewItem = MediaPreviewItem(file: .unmanaged(url: previewURL),
|
||||
title: "Important Document")
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ struct TimelineReplyView_Previews: PreviewProvider {
|
||||
thumbnailSource: nil,
|
||||
contentType: nil))))
|
||||
|
||||
let imageSource = MediaSourceProxy(url: .init(staticString: "https://mock.com"), mimeType: "image/png")
|
||||
let imageSource = MediaSourceProxy(url: "https://mock.com", mimeType: "image/png")
|
||||
|
||||
TimelineReplyView(placement: .timeline,
|
||||
timelineItemReplyDetails: .loaded(sender: .init(id: "", displayName: "Alice"),
|
||||
|
||||
+3
-3
@@ -24,13 +24,13 @@ struct LegalInformationScreen: View {
|
||||
Form {
|
||||
Section {
|
||||
Button(L10n.commonCopyright) {
|
||||
openURL(URL(staticString: "https://element.io/copyright"))
|
||||
openURL("https://element.io/copyright")
|
||||
}
|
||||
Button(L10n.commonAcceptableUsePolicy) {
|
||||
openURL(URL(staticString: "https://element.io/acceptable-use-policy-terms"))
|
||||
openURL("https://element.io/acceptable-use-policy-terms")
|
||||
}
|
||||
Button(L10n.commonPrivacyPolicy) {
|
||||
openURL(URL(staticString: "https://element.io/privacy"))
|
||||
openURL("https://element.io/privacy")
|
||||
}
|
||||
}
|
||||
.buttonStyle(.compoundForm(accessory: .navigationLink))
|
||||
|
||||
Reference in New Issue
Block a user