This commit is contained in:
Vladimir Dubovik
2024-12-12 13:37:07 +03:00
parent 1de531abc8
commit 92b125927d
13 changed files with 45 additions and 6 deletions

View File

@ -0,0 +1,15 @@
//
// OffsetKey.swift
// Schedule ICTIS
//
// Created by Mironov Egor on 18.11.2024.
//
import SwiftUI
struct OffsetKey: PreferenceKey {
static var defaultValue: CGFloat = 0
static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) {
value = nextValue()
}
}