Naming
Last updated
Last updated
Since you need to understand the naming representation, e.g., whether it is an enum or let, consistency in naming is crucial.
Naming Convention | Example |
---|---|
Although there are controversies, there is a convention on Swift naming, as you may see below.
Item | lowerCamelCase | UpperCamelCase | Start with Verb |
---|---|---|---|
Item | Abbr-3 | Abbr-4 |
---|---|---|
Camel Case - Lower
sedatOnat
Camel Case - Upper
SedatOnat
Flat Case
sedatonat
Kebab Case
sedat-onat
Kebab Case - Screaming
SEDAT-ONAT
Kebab Case - ?
Sedat-Onat
Sentence Case
?
Snake Case
sedat_onat
Snake Case - Camel
sedat_Onat
Snake Case - Pascal
Sedat_Onat
Snake Case - Screaming
SEDAT_ONAT
Upper Case
SEDATONAT
class
enum
func
let
protocol
struct
Type
var
class
cls
clas
enum
enm
enum
func
fnc
func
let
prl
prpl
protocol
prt
prtc
struct
stc
strc
Type
typ
type
var
prv
prpc