Streamlining lots of View Controller interactions with Swift enums.
Frederik Jacques
291

Thanks for share it!

But I think would be less intrusive in your code, create an extension with User Interactions or one MARK block to separate actions of the rest.

Something like this:

// MARK: — User Interactions

@IBAction func fromLocationRowPressed() { }

Or

extension UIViewController {

@IBAction func fromLocationRowPressed() { }

}

What do you think? Anyway your approach is valid too😬

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.