I want to organize my code by sections. usually I used #pragma mark - Section Name
but when I try to do so in a .swift file it doesn't work.
So my question is if I can somehow enable it and if not what is the way to organize my code in sections in a .swift file?
Use something like that:
// MARK: - UITableViewDataSource
Or use extensions
: I love the way how UITableViewDataSource
delegate is implemented in this answer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With