This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
class FolderMonitor { | |
private var monitoredFolderURL: URL | |
private var folderMonitorQueue: DispatchQueue | |
private var folderMonitorSource: DispatchSourceFileSystemObject? | |
private var lastFileList: [String] = [] | |
init(folderURL: URL) { | |
self.monitoredFolderURL = folderURL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LicenseManager.swift | |
// CompressX | |
// | |
// Created by Dinh Quang Hieu on 06/01/2024. | |
// | |
import Foundation | |
import SwiftUI | |
import IOKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LicenseView.swift | |
// CompressX | |
// | |
// Created by Dinh Quang Hieu on 06/01/2024. | |
// | |
import SwiftUI | |
struct LicenseView: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import Charts | |
struct ChartData: Identifiable { | |
var day: String | |
var value: Double | |
var id: String { day } | |
static var mock = [ |
OlderNewer