mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
10 lines
217 B
Swift
10 lines
217 B
Swift
|
import Foundation
|
||
|
import SwiftUI
|
||
|
|
||
|
struct RectKey: PreferenceKey {
|
||
|
static var defaultValue: CGRect = .zero
|
||
|
static func reduce(value: inout CGRect, nextValue: () -> CGRect) {
|
||
|
value = nextValue()
|
||
|
}
|
||
|
}
|