Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions XcodeCleaner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
window.contentView = NSHostingView(rootView: contentView)
window.makeKeyAndOrderFront(nil)
}
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { true }

func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
Expand Down
22 changes: 11 additions & 11 deletions XcodeCleaner/ViewModels/ViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ import SwiftUI
class ViewModel: ObservableObject, ViewModelProtocol {
private let directoryManager = DirectoryManager()

@Published var isScanStarted = false
var isScanStarted = false

@Published var directoriesCount: Int = 0
@Published var analyzedDirectoriesCount: Int = 0
@Published var totalSize: Int64 = 0
var directoriesCount: Int = 0
var analyzedDirectoriesCount: Int = 0
var totalSize: Int64 = 0

@Published var derivedData: [DirectoryModel] = []
@Published var deviceSupport: [DirectoryModel] = []
@Published var archives: [DirectoryModel] = []
@Published var iOSDeviceLogs: [DirectoryModel] = []
@Published var documentationCache: [DirectoryModel] = []
var derivedData: [DirectoryModel] = []
var deviceSupport: [DirectoryModel] = []
var archives: [DirectoryModel] = []
var iOSDeviceLogs: [DirectoryModel] = []
var documentationCache: [DirectoryModel] = []

@Published var isReadyToBeCleaned = false
@Published var isCleanStarted = false
var isReadyToBeCleaned = false
var isCleanStarted = false

@Published var isAlertPresented = false

Expand Down