mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-07-11 10:23:41 +02:00
Update Ghostgram features
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import SGSimpleSettings
|
||||
import Foundation
|
||||
import UIKit
|
||||
import AsyncDisplayKit
|
||||
@@ -164,7 +165,7 @@ final class TabBarControllerNode: ASDisplayNode {
|
||||
transition.updateAlpha(node: self.disabledOverlayNode, alpha: value ? 0.0 : 1.0)
|
||||
}
|
||||
|
||||
var tabBarHidden = false {
|
||||
var tabBarHidden = SGSimpleSettings.shared.hideTabBar {
|
||||
didSet {
|
||||
if self.tabBarHidden != oldValue {
|
||||
self.requestUpdate()
|
||||
@@ -250,7 +251,7 @@ final class TabBarControllerNode: ASDisplayNode {
|
||||
}
|
||||
)
|
||||
},
|
||||
search: self.currentController?.tabBarSearchState.flatMap { tabBarSearchState in
|
||||
search: (!SGSimpleSettings.shared.tabBarSearchEnabled) ? nil : self.currentController?.tabBarSearchState.flatMap { tabBarSearchState in
|
||||
return TabBarComponent.Search(
|
||||
isActive: tabBarSearchState.isActive,
|
||||
activate: { [weak self] in
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import SGSimpleSettings
|
||||
import Foundation
|
||||
import UIKit
|
||||
import AsyncDisplayKit
|
||||
@@ -720,6 +721,11 @@ class TabBarNode: ASDisplayNode, ASGestureRecognizerDelegate {
|
||||
node.contextImageNode.frame = CGRect(origin: CGPoint(), size: nodeFrame.size)
|
||||
node.contextTextImageNode.frame = CGRect(origin: CGPoint(), size: nodeFrame.size)
|
||||
|
||||
|
||||
node.imageNode.frame = CGRect(origin: CGPoint(x: 0.0, y: 6.0), size: nodeFrame.size)
|
||||
node.textImageNode.frame = CGRect(origin: CGPoint(), size: CGSize())
|
||||
|
||||
|
||||
let scaleFactor: CGFloat = horizontal ? 0.8 : 1.0
|
||||
node.animationContainerNode.subnodeTransform = CATransform3DMakeScale(scaleFactor, scaleFactor, 1.0)
|
||||
let animationOffset: CGPoint = self.tabBarItems[i].item.animationOffset
|
||||
|
||||
Reference in New Issue
Block a user