Andrew Bancroft 8/27/2014

Pick a Delegate… Any Delegate… On Clean View Controllers in Swift

Read Original

This article discusses the delegation pattern in iOS development, focusing on the common practice of overloading View Controllers with delegate responsibilities. The author presents a cleaner approach by creating a separate EmailComposer class to handle MFMailComposeViewController configuration and delegate methods, reducing View Controller complexity. A fully-working example is provided on GitHub, and the article evaluates the benefits of this refactoring technique for iOS Swift developers.

Pick a Delegate… Any Delegate… On Clean View Controllers in Swift

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

No top articles yet