mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-06-08 11:03:55 +02:00
chore: migrate to new version + fixed several critical bugs
- Migrated project to latest Telegram iOS base (v12.3.2+) - Fixed circular dependency between GhostModeManager and MiscSettingsManager - Fixed multiple Bazel build configuration errors (select() default conditions) - Fixed duplicate type definitions in PeerInfoScreen - Fixed swiftmodule directory resolution in build scripts - Added Ghostgram Settings tab in main Settings menu with all 5 features - Cleared sensitive credentials from config.json (template-only now) - Excluded bazel-cache from version control
This commit is contained in:
@@ -110,7 +110,7 @@ public class ChatTitleActivityContentNode: ASDisplayNode {
|
||||
})
|
||||
|
||||
if case .slide = style {
|
||||
self.layer.animatePosition(from: CGPoint(), to: CGPoint(x: 0.0, y: 14.0), duration: transitionDuration, additive: true)
|
||||
self.layer.animatePosition(from: CGPoint(), to: CGPoint(x: 0.0, y: 4.0), duration: transitionDuration, additive: true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ public class ChatTitleActivityContentNode: ASDisplayNode {
|
||||
self.layer.animateAlpha(from: 0.0, to: 1.0, duration: transitionDuration)
|
||||
|
||||
if case .slide = style {
|
||||
self.layer.animatePosition(from: CGPoint(x: 0.0, y: -14.0), to: CGPoint(), duration: transitionDuration, additive: true)
|
||||
self.layer.animatePosition(from: CGPoint(x: 0.0, y: -4.0), to: CGPoint(), duration: transitionDuration, additive: true)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -130,6 +130,9 @@ public class ChatTitleActivityNode: ASDisplayNode {
|
||||
}
|
||||
|
||||
public func updateLayout(_ constrainedSize: CGSize, offset: CGFloat = 0.0, alignment: NSTextAlignment) -> CGSize {
|
||||
return CGSize(width: 0.0, height: self.contentNode?.updateLayout(constrainedSize, offset: offset, alignment: alignment).height ?? 0.0)
|
||||
guard let contentSize = self.contentNode?.updateLayout(constrainedSize, offset: offset, alignment: alignment) else {
|
||||
return CGSize()
|
||||
}
|
||||
return contentSize
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user