mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
28 lines
966 B
Swift
28 lines
966 B
Swift
import Foundation
|
|
import UIKit
|
|
import AsyncDisplayKit
|
|
import SwiftSignalKit
|
|
|
|
public enum TabBarItemSwipeDirection {
|
|
case left
|
|
case right
|
|
}
|
|
|
|
public protocol TabBarController: ViewController {
|
|
var currentController: ViewController? { get }
|
|
var controllers: [ViewController] { get }
|
|
var selectedIndex: Int { get set }
|
|
|
|
func setControllers(_ controllers: [ViewController], selectedIndex: Int?)
|
|
|
|
func updateBackgroundAlpha(_ alpha: CGFloat, transition: ContainedViewLayoutTransition)
|
|
|
|
func frameForControllerTab(controller: ViewController) -> CGRect?
|
|
func isPointInsideContentArea(point: CGPoint) -> Bool
|
|
func sourceNodesForController(at index: Int) -> [ASDisplayNode]?
|
|
|
|
func updateIsTabBarEnabled(_ value: Bool, transition: ContainedViewLayoutTransition)
|
|
func updateIsTabBarHidden(_ value: Bool, transition: ContainedViewLayoutTransition)
|
|
func updateLayout(transition: ContainedViewLayoutTransition)
|
|
}
|