Skip to content

Kerry50407/SwiftCodingStyleSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

SwiftCodingStyleSample

This sample demonstrate the order of a class

  • Order 1: Protocol, Enum, Struct, class... for outter used

  • Order 2: Class defination

    Constants, variable:

    • Order 3: Protocol, Enum, Struct, class... for inner used
    • Order 4: IBOutlet
    • Order 5: Internal constants, variable
    • Order 6: Local constants, variable

    Function:

    • Order 7: Init / Deinit function(If it has)
    • Order 8: Override function
    • Order 9: Fuction for intialization
  • Order 10: Group of specific outer function

  • Order 11: Group of specific inner function

  • Order 12: Protocol to extension - Native class

  • Order 13: Protocol to extension - Custom class

  • Order 14: IBAction function

Sameple in CaculatorBookListViewController.swift

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages