Skip to content

Commit

Permalink
Release 6.17.3
Browse files Browse the repository at this point in the history
commit_hash:2ba1d77368a793c4ce2ee7659b87f9484e44fe16
  • Loading branch information
robot-vgsl committed Jan 13, 2025
1 parent 72b44f7 commit a054741
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions VGSLFundamentals/reactive/observing/ObservableVariable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ extension ObservableVariable {
initial: Bool = false,
areEqual: @escaping (T, T) -> Bool
) -> Signal<T> {
(initial ? currentAndNewValues : newValues)
.skipRepeats(areEqual: areEqual)
let ov = skipRepeats(areEqual: areEqual)
return initial ? ov.currentAndNewValues : ov.newValues
}
}

Expand Down Expand Up @@ -515,6 +515,7 @@ extension ObservableVariable where T: Equatable {
public func changes(
initial: Bool = false
) -> Signal<T> {
(initial ? currentAndNewValues : newValues).skipRepeats()
let ov = skipRepeats()
return initial ? ov.currentAndNewValues : ov.newValues
}
}
5 changes: 5 additions & 0 deletions VGSLUI/uikit/UIViewExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ extension UIView {
return result
}

public func setNonTransformedFrame(_ rect: CGRect) {
bounds.size = rect.size
center = rect.center
}

public func makeScreenshot(
in cropRect: RelativeRect = .full,
isOpaque: Bool = false,
Expand Down

0 comments on commit a054741

Please sign in to comment.