Files
.github
Backports
Extensions
Fixtures
Model
Open in Yattee
Shared
Shared Tests
Tests Apple TV
Tests iOS
Tests macOS
Vendor
RefreshControl
Extensions
ScrollViewMatcher
FramePreferenceKey.swift
ScrollViewMatcher.swift
README
RefreshControl.swift
RefreshControlModifier.swift
Xcode-config
Yattee.xcodeproj
fastlane
iOS
macOS
tvOS
.gitignore
.swift-version
.swiftformat
.swiftlint.yml
CHANGELOG.md
Gemfile
Gemfile.lock
LICENSE
README.md
yattee/Vendor/RefreshControl/ScrollViewMatcher/FramePreferenceKey.swift
Arkadiusz Fal 94915b0496 Revert "Drop iOS 14 and macOS 11 support"
This reverts commit dcef7f47ff.
2023-10-15 13:35:23 +02:00

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