-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix select/deselect button switching Replace DZNEmptyDataSet with BlankSlate Add confirmation alert for all package removal attempts Models are now with generics
- Loading branch information
Showing
53 changed files
with
875 additions
and
814 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
PODS: | ||
- DZNEmptyDataSet (1.8.1) | ||
- StyledTextKit (0.2.0) | ||
|
||
DEPENDENCIES: | ||
- DZNEmptyDataSet | ||
- StyledTextKit | ||
|
||
SPEC REPOS: | ||
trunk: | ||
- DZNEmptyDataSet | ||
- StyledTextKit | ||
|
||
SPEC CHECKSUMS: | ||
DZNEmptyDataSet: 9525833b9e68ac21c30253e1d3d7076cc828eaa7 | ||
StyledTextKit: dbfb29a59922c6f18897a0266acd139b7c9e712b | ||
|
||
PODFILE CHECKSUM: 0333d228da71984d961f27bce3f4f90e02f0018b | ||
PODFILE CHECKSUM: 344bd33b6be452101823bffd5448fc64f3ec1453 | ||
|
||
COCOAPODS: 1.15.2 |
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 10 additions & 1 deletion
11
twackup-gui/Twackup.xcworkspace/xcshareddata/swiftpm/Package.resolved
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
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
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,12 @@ | ||
// | ||
// Sequence.swift | ||
// Twackup | ||
// | ||
// Created by Daniil on 16.06.2024. | ||
// | ||
|
||
extension Sequence { | ||
func sorted<T: Comparable>(by keyPath: KeyPath<Element, T>) -> [Element] { | ||
sorted { $0[keyPath: keyPath] < $1[keyPath: keyPath] } | ||
} | ||
} |
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,47 @@ | ||
// | ||
// UnfairLock.swift | ||
// Twackup | ||
// | ||
// Created by Daniil on 16.06.2024. | ||
// | ||
|
||
final class UnfairLock<Value> { | ||
private let lock = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1) | ||
|
||
private var _value: Value | ||
|
||
var value: Value { | ||
get { whileLocked { _value } } | ||
set { whileLocked { _value = newValue } } | ||
} | ||
|
||
init(value: Value) { | ||
_value = value | ||
lock.initialize(to: .init()) | ||
} | ||
|
||
deinit { | ||
lock.deinitialize(count: 1) | ||
lock.deallocate() | ||
} | ||
|
||
func whileLocked<T>(_ action: () -> T) -> T { | ||
os_unfair_lock_lock(lock) | ||
defer { os_unfair_lock_unlock(lock) } | ||
return action() | ||
} | ||
} | ||
|
||
@propertyWrapper | ||
struct UnfairLockWrap<Value> { | ||
private let lock: UnfairLock<Value> | ||
|
||
var wrappedValue: Value { | ||
get { lock.value } | ||
set { lock.value = newValue } | ||
} | ||
|
||
init(wrappedValue: Value) { | ||
lock = UnfairLock(value: wrappedValue) | ||
} | ||
} |
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
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
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.