yattee/Shared/PreferenceKeys.swift
2022-12-04 13:32:26 +01:00

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()
}
}