WWSimpleZipDirectoryReader Introduction - 簡介 Simply read the directory names of files within a zip archive. 簡單讀取zip壓縮檔裡的檔案目錄名稱。 Installation with Swift Package Manager dependencies: [ .package(url: "https://github.com/William-Weng/WWSimpleZipDirectoryReader.git", .upToNextMajor(from: "1.0.0")) ] 可用函式 (Function) 函式 功能 array(fileURL:) 以名稱排序顯示 dictionay(fileURL:) 以字典方式顯示 Example import UIKit import WWSimpleZipDirectoryReader final class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let zipFileURL = Bundle.main.url(forResource: "Test", withExtension: "zip")! let array = try! WWSimpleZipDirectoryReader.shared.array(fileUrl: zipFileURL).get() array.forEach { print($0) } } }