Skip to content

Instantly share code, notes, and snippets.

View diogo10's full-sized avatar
🦊
Focusing

Diogo Henrique diogo10

🦊
Focusing
View GitHub Profile
@diogo10
diogo10 / .gitignore
Created June 26, 2017 13:26 — forked from pholas/.gitignore
.gitignore for Xcode 8 and Swift 3
## OS X files
.DS_Store
.DS_Store?
.Trashes
.Spotlight-V100
*.swp
## Xcode build files
DerivedData/
build/
@diogo10
diogo10 / Swiftly.swift
Created October 7, 2020 13:13
Swiftly some ideias
///In order to avoid "if != nil", do:
var shouldBeAbleToSave: Bool {
let value1 = "something"
let value2 = "another value"
let value3 = nil
return ![value1, value2, value3].contains { $0 == nil }
}