PitstopHeightPreference
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
struct PitstopHeightPreference : PreferenceKey
Collects height of all pistop cells, with reduce takes the maximum value for the given key
-
Declaration
Swift
typealias Value = [Int : CGFloat]
-
provide a default value for custom dependency
Declaration
Swift
static let defaultValue: Value