q
This commit is contained in:
15
Schedule ICTIS/Helpers/OffsetKey.swift
Normal file
15
Schedule ICTIS/Helpers/OffsetKey.swift
Normal 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()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user