element-ios/Riot/Modules/SlidingModal/SlidingModalPresentable.swift

21 lines
591 B
Swift

/*
Copyright 2019-2024 New Vector Ltd.
SPDX-License-Identifier: AGPL-3.0-only
Please see LICENSE in the repository root for full details.
*/
import Foundation
/// `SlidingModalPresentable` is a protocol describing a UI element to present modally using `SlidingModalPresenter`.
@objc protocol SlidingModalPresentable {
typealias ViewType = UIView & SlidingModalPresentable
typealias ViewControllerType = UIViewController & SlidingModalPresentable
func allowsDismissOnBackgroundTap() -> Bool
func layoutHeightFittingWidth(_ width: CGFloat) -> CGFloat
}