How to name Boolean property in Swift

Issue #787

In Swift, property, especially for Boolean flagging, uses the regular verb form for the third person. There are few exceptions, such as enable

1
2
3
4
5
6
7
NSManagedObjectContext.automaticallyMergesChangesFromParent
UIView.clipsToBounds
UIView.translatesAutoresizingMaskIntoConstraints
SwiftUI.Transaction.disablesAnimations
UIScrollView.scrollsToTop
NSView.isHidden
UndoManager.enableUndoRegistration

Updated at 2021-02-28 22:34:53

Comments