Files
GitHawk/Classes/Utility/AlertActionBuilder.swift
Hesham Salman 7b25f6acb0 Picked up the easy bits of Ryan's review #865 (#877)
* Picked up the easy bits of Ryan's review #855

- Replaced "// MARK: -" with "// MARK:"
- Added final to classes
- Added newlines for readability
- Computed and stored diffIdentifier of BookmarkViewModel

* Removed NSObject from BookmarkViewModel

* Moved icon logic to the configure block of the BookmarkCell
2017-11-07 08:45:31 -05:00

30 lines
512 B
Swift

//
// AlertActionBuilder.swift
// Freetime
//
// Created by Ivan Magda on 27/09/2017.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import UIKit
// MARK: AlertActionBuilder -
class AlertActionBuilder {
typealias BuilderClosure = (AlertActionBuilder) -> Void
// MARK: Properties
var rootViewController: UIViewController?
var title: String?
var style: UIAlertActionStyle?
// MARK: Init
init(_ buildClosure: BuilderClosure) {
buildClosure(self)
}
}