mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-25 04:16:58 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
29 lines
962 B
Swift
29 lines
962 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 updateIsTabBarEnabled(_ value: Bool, transition: ContainedViewLayoutTransition)
|
|
func updateIsTabBarHidden(_ value: Bool, transition: ContainedViewLayoutTransition)
|
|
func updateLayout(transition: ContainedViewLayoutTransition)
|
|
|
|
func updateControllerLayout(controller: ViewController)
|
|
}
|