aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/FilePicker.swift
blob: 25da7b95c1b83a8b88cab09bf1e3d32c80aa962f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: MIT
// Copyright © 2018 WireGuard LLC. All rights reserved.

import UIKit

class FileImportViewController: UIDocumentPickerViewController {
    enum DocumentType: String {
        case wgQuickConfigFile = "com.wireguard.config.quick"
    }

    init(documentTypes: [DocumentType]) {
        super.init(documentTypes: documentTypes.map { $0.rawValue }, in: .import)
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}