mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-02 18:59:51 +00:00
Stories
This commit is contained in:
parent
84ddfbdfda
commit
4d3639f950
@ -1192,7 +1192,7 @@ public final class StoryPeerListComponent: Component {
|
||||
if let titleIconSize, let titleIconView = self.titleIconView?.view {
|
||||
titleContentOffset += titleIconSpacing
|
||||
|
||||
let titleIconFrame = CGRect(origin: CGPoint(x: titleContentOffset + titleIconSpacing + (collapsedState.titleWidth - (titleIconSpacing + titleIconSize.width)) * (1.0 - collapsedState.activityFraction), y: collapsedItemOffsetY + 2.0 + floor((56.0 - titleIconSize.height) * 0.5)), size: titleIconSize)
|
||||
let titleIconFrame = CGRect(origin: CGPoint(x: titleContentOffset - 3.0 + titleIconSpacing + (collapsedState.titleWidth - (titleIconSpacing + titleIconSize.width)) * (1.0 - collapsedState.activityFraction), y: collapsedItemOffsetY + 2.0 + floor((56.0 - titleIconSize.height) * 0.5)), size: titleIconSize)
|
||||
|
||||
if titleIconView.superview == nil {
|
||||
self.addSubview(titleIconView)
|
||||
|
@ -499,6 +499,7 @@ public final class StoryPeerListItemComponent: Component {
|
||||
|
||||
func updateIsPreviewing(isPreviewing: Bool) {
|
||||
self.avatarContent.alpha = isPreviewing ? 0.0 : 1.0
|
||||
self.avatarBackgroundView.alpha = isPreviewing ? 0.0 : 1.0
|
||||
}
|
||||
|
||||
func update(component: StoryPeerListItemComponent, availableSize: CGSize, state: EmptyComponentState, environment: Environment<Empty>, transition: Transition) -> CGSize {
|
||||
|
Loading…
x
Reference in New Issue
Block a user