Post

Replies

Boosts

Views

Activity

Why is UIContentSizeCategory not Comparable?
UIContentSizeCategory implements the usual comparison operators through an NS_REFINED_FOR_SWIFT macro, but does not declare Comparable conformance. Implementing it is as easy as extension UIContentSizeCategory: Comparable {} Is there a reason why Comparable is not implemented by default?
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
271
May ’22
Why is UIContentSizeCategory not Comparable?
UIContentSizeCategory implements the usual comparison operators through an NS_REFINED_FOR_SWIFT macro, but does not declare Comparable conformance. Implementing it is as easy as extension UIContentSizeCategory: Comparable {} Is there a reason why Comparable is not implemented by default?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
271
Activity
May ’22
Why is animation parameter for UIView.transition(with:duration:options:animations:completion:) optional
https://developer.apple.com/documentation/uikit/uiview/1622574-transition specifies for the animation parameter: This parameter must not be NULL. Yet the animation parameter is defined as (() -> Void)? and passing nil seems to work fine, performing an animation on the latest update to the with view.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
2
Boosts
0
Views
317
Activity
Apr ’22