mirror of
https://github.com/yattee/yattee.git
synced 2024-12-12 21:30:32 +05:30
94915b0496
This reverts commit dcef7f47ff
.
19 lines
366 B
Swift
19 lines
366 B
Swift
//
|
|
// FramePreferenceKey.swift
|
|
// SwiftUI_Pull_to_Refresh
|
|
//
|
|
// Created by Geri Borbás on 21/09/2021.
|
|
//
|
|
|
|
import Foundation
|
|
import SwiftUI
|
|
|
|
struct FramePreferenceKey: PreferenceKey {
|
|
typealias Value = CGRect
|
|
static var defaultValue = CGRect.zero
|
|
|
|
static func reduce(value: inout CGRect, nextValue: () -> CGRect) {
|
|
value = nextValue()
|
|
}
|
|
}
|