-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add settings view and support for custom ipsw restore images
- Loading branch information
*
committed
Jul 6, 2022
1 parent
6c260d5
commit 820263f
Showing
18 changed files
with
241 additions
and
136 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Binary file modified
BIN
-11.5 KB
(99%)
virtualOS/Assets.xcassets/AppIcon.appiconset/virtualOS-macOS-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+191 Bytes
(100%)
virtualOS/Assets.xcassets/AppIcon.appiconset/virtualOS-macOS-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+25 Bytes
(100%)
virtualOS/Assets.xcassets/AppIcon.appiconset/virtualOS-macOS-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-290 Bytes
(99%)
virtualOS/Assets.xcassets/AppIcon.appiconset/virtualOS-macOS-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+79 Bytes
(100%)
virtualOS/Assets.xcassets/AppIcon.appiconset/virtualOS-macOS-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.13 KB
(99%)
virtualOS/Assets.xcassets/AppIcon.appiconset/virtualOS-macOS-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+150 Bytes
(100%)
virtualOS/Assets.xcassets/AppIcon.appiconset/virtualOS-macOS-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// UserDefaults+Settings.swift | ||
// virtualOS | ||
// | ||
// Created by Jahn Bertsch on 03.07.22. | ||
// | ||
|
||
import Foundation | ||
|
||
extension UserDefaults { | ||
fileprivate static let diskSizeKey = "diskSize" | ||
|
||
var diskSize: Int { | ||
get { | ||
if object(forKey: Self.diskSizeKey) != nil { | ||
return integer(forKey: Self.diskSizeKey) | ||
} | ||
return 60 // default value | ||
} | ||
set { | ||
set(newValue, forKey: Self.diskSizeKey) | ||
synchronize() | ||
} | ||
} | ||
} |
This file contains 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
Oops, something went wrong.