Swift Method Signatures - Hipo/mobile-team-guidelines GitHub Wiki
In swift we can declare methods in different ways, such as:
func configureCommentCell(_ cell: PostCommentCell, atIndexPath indexPath: IndexPath) {
...
}
func configure(_ cell: PostCommentCell, at indexPath: IndexPath) {
...
}
For now there is no strict rule to pick one of two. However, for consistency we recommend to use just one approach for any project.
Also an invalid signature could be like this;
func configureComment(cell: PostCommentCell, atIndexPath: IndexPath)