Olivier Halligon 9/2/2018

Private properties in protocols

Read Original

This Swift programming article discusses a limitation where protocols cannot specify private properties. It presents a workaround using a protocol extension with an internal computed property to hide implementation details, using a Coordinator pattern example for iOS navigation management.

Private properties in protocols

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week