1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 05:40:32 +05:30
yattee/Shared/PreferenceKeys.swift

10 lines
217 B
Swift
Raw Normal View History

2022-11-13 23:22:15 +05:30
import Foundation
import SwiftUI
struct RectKey: PreferenceKey {
static var defaultValue: CGRect = .zero
static func reduce(value: inout CGRect, nextValue: () -> CGRect) {
value = nextValue()
}
}