adwaita-swift/Sources/Core/View/Carousel+.swift
david-swift 8eeda083e9
All checks were successful
Deploy Docs / publish (push) Successful in 18m28s
SwiftLint / SwiftLint (push) Successful in 5s
Separate AnyView extensions from widgets
2024-10-16 14:22:34 +02:00

18 lines
363 B
Swift

//
// Carousel+.swift
// Adwaita
//
// Created by david-swift on 18.01.24.
//
extension Carousel {
/// Set whether long swipes are allowed or not.
/// - Parameter longSwipes: Whether long swipes are allowed.
/// - Returns: The carousel.
public func longSwipes(_ longSwipes: Bool = true) -> Self {
allowLongSwipes(longSwipes)
}
}