| Identifier | Enabled by default | Supports autocorrection |
|---|---|---|
attributes |
Disabled | No |
Attributes should be on their own lines in functions and types, but on the same line as variables and imports.
| import SwiftUI | |
| final class SomeView: UIView { | |
| init() { | |
| super.init(frame: CGRect.zero) | |
| // TODO: create your view content | |
| } | |
| @available(*, unavailable) | |
| required init?(coder: NSCoder) { |
| func makeGetCall() { | |
| // Set up the URL request | |
| let todoEndpoint: String = "https://jsonplaceholder.typicode.com/todos/1" | |
| guard let url = URL(string: todoEndpoint) else { | |
| print("Error: cannot create URL") | |
| return | |
| } | |
| let urlRequest = URLRequest(url: url) | |
| // set up the session |
| [alias] | |
| ignore = update-index --assume-unchanged | |
| unignore = update-index --no-assume-unchanged | |
| ignored = !git ls-files -v | grep "^[[:lower:]]" |
| #!/bin/sh | |
| instruments -s devices \ | |
| | grep "(\d[.0-9]\+) \[[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}\]" \ | |
| | grep -o "[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}" \ | |
| | while read -r line ; do | |
| echo "Reseting Simulator with UDID: $line" | |
| xcrun simctl erase $line | |
| done |
| // Based on Swift 1.2, ObjectMapper 0.15, RealmSwift 0.94.1 | |
| // Author: Timo Wälisch <[email protected]> | |
| import UIKit | |
| import RealmSwift | |
| import ObjectMapper | |
| import SwiftyJSON | |
| class ArrayTransform<T:RealmSwift.Object where T:Mappable> : TransformType { | |
| typealias Object = List<T> |