This commit is contained in:
Vladimir Dubovik
2024-11-18 19:19:52 +03:00
parent 3670a0b01f
commit 4fdec23e52
6 changed files with 189 additions and 6 deletions

View File

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