Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions StikJIT/Views/Something.swift
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ struct IPAAppManagerView: View {
.navigationTitle("Testing")
.stikImporter(isPresented: $pickerShown,
selectedURLs: .constant([]),
allowedContentTypes: [.item],
allowedContentTypes: [UTType(filenameExtension: "ipa") ?? .archive],
allowsMultipleSelection: false) { urls in
if let u = urls.first {
do { try mgr.importIPA(from: u); notify("File imported", "File saved to Imports") }
Expand Down Expand Up @@ -531,12 +531,12 @@ private struct AddCertView: View {
importRow(label: ".mobileprovision", picked: mobURL != nil) { pickMob = true }
.stikImporter(isPresented: $pickMob,
selectedURLs: .constant([]),
allowedContentTypes: [UTType.item],
allowedContentTypes: [UTType(filenameExtension: "mobileprovision") ?? .data],
allowsMultipleSelection: false) { mobURL = $0.first }
importRow(label: ".p12 file", picked: p12URL != nil) { pickP12 = true }
.stikImporter(isPresented: $pickP12,
selectedURLs: .constant([]),
allowedContentTypes: [UTType.item],
allowedContentTypes: [UTType(filenameExtension: "p12") ?? .data],
allowsMultipleSelection: false) { p12URL = $0.first }
SecureField("p12 password", text: $password)
}
Expand Down