Skip to content

loganblevins/Luna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Luna - Fertility Tracker 🌙

![] (http://img.wallpaperfolder.com/f/4FE4BAB1927C/fonds-cran-tumblr-pc-et.jpg)

Setup

  1. $ git clone https://github.com/loganblevins/Luna.git
  2. $ cd <yourPathToLuna>
  3. $ sudo gem install cocoapods
  4. $ pod install
  5. Open 'Luna.xcworkspace'
  6. 😎

Contributing

  1. Branch from master
  2. Open Pull Request
  3. Wait for :shipit:
  4. Merge into master

Style

  • Follow Swift API Design Guidelines

    • Names of types and protocols are UpperCamelCase. Everything else is lowerCamelCase.
    • Include all the words needed to avoid ambiguity.
    • Omit needless words.
    • Avoid abbreviations.
    • Name variables, parameters, and associated types according to their roles.
      e.g. var greeting = "Hello", not var string = "Hello"
    • Name functions and methods according to their side-effects.
    • Uses of Boolean methods and properties should read as assertions about the receiver when the use is non-mutating. e.g. x.isEmpty, line1.intersects( line2 )
  • Clamshell curly brackets

if let _ = textField.text where !textField.text.isEmpty
{
    print( "Non-empty textField" )
}
else
{
    print( "Empty textField" )
}
  • Comments with empty ending line
// `Characters` view doesn't honor certain characters.
// Rather, it treats characters as they appear visually.
// `utf16` view honors all characters, regardless of visuals.
//
var count: Int
{
    return self.utf16.count
}
  • Spacing between operators
extension String
{
    func contains( find: String ) -> Bool
    {
        return range( of: find ) != nil
    }
}
  • Use tabs in Xcode...(not spaces)

About

Fertility Tracker app on iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •