Appearance
Swift's dynamic
The dynamic
keyword in Swift is used to indicate that a method or propery should use dynamic dispatch instead of static dispatch.
The dynamic
keyword can only be applied to class members, not structs or enums.
Adding dynamic
keyword implicitly adds @objc
attribute which makes the member accessible to Objective-C.