Home telegram - tabbar
Post
Cancel

telegram - tabbar

TabBarController

1
2
3
4
5
private var tabBarControllerNode: TabBarControllerNode {
    get {
        return super.displayNode as! TabBarControllerNode
    }
}

TabBarControllerNode

1
2
3
4
let tabBarNode: TabBarNode
private let navigationBar: NavigationBar?
private var toolbarNode: ToolbarNode?
private let toolbarActionSelected: (ToolbarActionOption) -> Void

TabBarNode

1
2
3
4
5
6
7
8
9
10
11
var tabBarItems: [UITabBarItem] = [] {
    didSet {
        self.reloadTabBarItems()
    }
}

private let itemSelected: (Int, Bool, [ASDisplayNode]) -> Void

private var badgeImage: UIImage
let separatorNode: ASDisplayNode
private var tabBarNodeContainers: [TabBarNodeContainer] = []

TabBarNodeContainer

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
let item: UITabBarItem

let imageNode: TabBarItemNode

let badgeContainerNode: ASDisplayNode
let badgeBackgroundNode: ASImageNode
let badgeTextNode: ImmediateTextNode

var badgeValue: String?
var appliedBadgeValue: String?

var titleValue: String?
var appliedTitleValue: String?

var imageValue: UIImage?
var appliedImageValue: UIImage?

var selectedImageValue: UIImage?
var appliedSelectedImageValue: UIImage?

TabBarItemNode

1
2
3
let imageNode: ASImageNode
let textImageNode: ASImageNode
var contentWidth: CGFloat?
This post is licensed under CC BY 4.0 by the author.