IntrepidPursuits/swift-style-guide

Specify some naming conventions

Opened this issue · 0 comments

The ones I'd like to agree upon (whether or not we use these exactly, I think there should be parity). The reasoning behind this is that it makes it easy to search the project for the corresponding action

Button Presses

<#name-of-button#>Pressed:

ie:

closeButtonPressed

not

close

Gestures

handle<#gesture-type#>

ie:

handleTap

not

showImage

If multiple gestures of same type are used in parallel, should be:

handle<#identifier#><#type#>

ie:

handleImagePan
handleTrayPan