mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix action sheet items update
This commit is contained in:
@@ -26,6 +26,7 @@ public class ActionSheetSwitchItem: ActionSheetItem {
|
||||
}
|
||||
|
||||
node.setItem(self)
|
||||
node.requestLayoutUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,8 +100,6 @@ public class ActionSheetSwitchNode: ActionSheetItemNode {
|
||||
accessibilityTraits.insert(.selected)
|
||||
}
|
||||
self.accessibilityArea.accessibilityTraits = accessibilityTraits
|
||||
|
||||
self.setNeedsLayout()
|
||||
}
|
||||
|
||||
public override func updateLayout(constrainedSize: CGSize, transition: ContainedViewLayoutTransition) -> CGSize {
|
||||
@@ -116,7 +115,7 @@ public class ActionSheetSwitchNode: ActionSheetItemNode {
|
||||
|
||||
self.accessibilityArea.frame = CGRect(origin: CGPoint(), size: size)
|
||||
|
||||
self.updateInternalLayout(size)
|
||||
self.updateInternalLayout(size, constrainedSize: constrainedSize)
|
||||
return size
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user