mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-04-01 12:43:47 +08:00
* 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
30 lines
512 B
Swift
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)
|
|
}
|
|
|
|
}
|