Skip to content

Commit

Permalink
[Project] Replace //mark for // MARK:
Browse files Browse the repository at this point in the history
  • Loading branch information
bogren committed Nov 28, 2016
1 parent 191ab16 commit 22c1648
Show file tree
Hide file tree
Showing 26 changed files with 97 additions and 97 deletions.
10 changes: 5 additions & 5 deletions Examples/Example/BackgroundNetworkingViewController.swift
Expand Up @@ -27,7 +27,7 @@ import Instructions
// Unleash the Network Link Conditioner!
internal class BackgroundNetworkingViewController: DefaultViewController {

//mark: - Private properties
// MARK: - Private properties
fileprivate lazy var urlSession: Foundation.URLSession = {
let configuration = URLSessionConfiguration.background(withIdentifier: "BackgroundNetworking")
configuration.sessionSendsLaunchEvents = true
Expand All @@ -38,7 +38,7 @@ internal class BackgroundNetworkingViewController: DefaultViewController {

fileprivate var downloadTask: URLSessionDownloadTask?

//mark: - View Lifecycle
// MARK: - View Lifecycle
override func viewDidLoad() {
super.viewDidLoad()
coachMarksController?.delegate = self
Expand All @@ -50,7 +50,7 @@ internal class BackgroundNetworkingViewController: DefaultViewController {
startDownload()
}

//mark: - Internal Methods
// MARK: - Internal Methods
override func startInstructions() {
// Do nothing and override super.
}
Expand All @@ -65,7 +65,7 @@ internal class BackgroundNetworkingViewController: DefaultViewController {
}
}

//mark: - CoachMarksControllerDelegate
// MARK: - CoachMarksControllerDelegate
extension BackgroundNetworkingViewController: CoachMarksControllerDelegate {
func coachMarksController(_ coachMarksController: CoachMarksController, willShow coachMark: inout CoachMark, at index: Int) {
if index == 2 {
Expand All @@ -76,7 +76,7 @@ extension BackgroundNetworkingViewController: CoachMarksControllerDelegate {

}

//mark: - NSURLSessionDownloadDelegate
// MARK: - NSURLSessionDownloadDelegate
extension BackgroundNetworkingViewController: URLSessionDownloadDelegate {
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
print("Finished.")
Expand Down
2 changes: 1 addition & 1 deletion Examples/Example/BlurringOverlayViewController.swift
Expand Up @@ -25,7 +25,7 @@ import Instructions

/// Will display coach marks on top of a blurred background.
internal class BlurringOverlayViewController: DefaultViewController {
//mark: - View lifecycle
// MARK: - View lifecycle
override func viewDidLoad() {
super.viewDidLoad()

Expand Down
6 changes: 3 additions & 3 deletions Examples/Example/CustomCoachMarkArrowView.swift
Expand Up @@ -25,17 +25,17 @@ import Instructions

// Custom coach mark body (with the secret-like arrow)
internal class CustomCoachMarkArrowView : UIView, CoachMarkArrowView {
//mark: - Internal properties
// MARK: - Internal properties
var topPlateImage = UIImage(named: "coach-mark-top-plate")
var bottomPlateImage = UIImage(named: "coach-mark-bottom-plate")
var plate = UIImageView()

var highlighted: Bool = false

//mark: - Private properties
// MARK: - Private properties
fileprivate var column = UIView()

//mark: - Initialization
// MARK: - Initialization
init?(orientation: CoachMarkArrowOrientation) {
super.init(frame: CGRect.zero)

Expand Down
6 changes: 3 additions & 3 deletions Examples/Example/CustomCoachMarkBodyView.swift
Expand Up @@ -25,7 +25,7 @@ import Instructions

// Custom coach mark body (with the secret-like arrow)
internal class CustomCoachMarkBodyView : UIView, CoachMarkBodyView {
//mark: - Internal properties
// MARK: - Internal properties
var nextControl: UIControl? {
get {
return self.nextButton
Expand All @@ -39,7 +39,7 @@ internal class CustomCoachMarkBodyView : UIView, CoachMarkBodyView {

weak var highlightArrowDelegate: CoachMarkBodyHighlightArrowDelegate? = nil

// mark: - Initialization
// MARK: - Initialization
override init (frame: CGRect) {
super.init(frame: frame)

Expand All @@ -54,7 +54,7 @@ internal class CustomCoachMarkBodyView : UIView, CoachMarkBodyView {
fatalError("This class does not support NSCoding.")
}

//mark: - Private methods
// MARK: - Private methods
fileprivate func setupInnerViewHierarchy() {
self.translatesAutoresizingMaskIntoConstraints = false
self.backgroundColor = UIColor.white
Expand Down
8 changes: 4 additions & 4 deletions Examples/Example/CustomViewController.swift
Expand Up @@ -26,10 +26,10 @@ import Instructions
// Will display custom coach marks.
internal class CustomViewsViewController: ProfileViewController {

//mark: - IBOutlet
// MARK: - IBOutlet
@IBOutlet var allView: UIView?

//mark: - View Lifecycle
// MARK: - View Lifecycle
override func viewDidLoad() {
super.viewDidLoad()

Expand All @@ -49,9 +49,9 @@ internal class CustomViewsViewController: ProfileViewController {
}
}

//mark: - Protocol Conformance | CoachMarksControllerDataSource
// MARK: - Protocol Conformance | CoachMarksControllerDataSource
extension CustomViewsViewController: CoachMarksControllerDataSource {
//mark: - Protocol Conformance | CoachMarksControllerDataSource
// MARK: - Protocol Conformance | CoachMarksControllerDataSource
func numberOfCoachMarks(for coachMarksController: CoachMarksController) -> Int {
return 5
}
Expand Down
4 changes: 2 additions & 2 deletions Examples/Example/DefaultViewController.swift
Expand Up @@ -26,7 +26,7 @@ import Instructions
// That's the default controller, using every defaults made available by Instructions.
// It can't get any simpler.
internal class DefaultViewController: ProfileViewController {
//mark: - View Lifecycle
// MARK: - View Lifecycle
override func viewDidLoad() {
super.viewDidLoad()

Expand All @@ -43,7 +43,7 @@ internal class DefaultViewController: ProfileViewController {
}
}

//mark: - Protocol Conformance | CoachMarksControllerDataSource
// MARK: - Protocol Conformance | CoachMarksControllerDataSource
extension DefaultViewController: CoachMarksControllerDataSource {
func numberOfCoachMarks(for coachMarksController: CoachMarksController) -> Int {
return 5
Expand Down
8 changes: 4 additions & 4 deletions Examples/Example/DelegateViewController.swift
Expand Up @@ -26,11 +26,11 @@ import Instructions
// This class show off the oportunities provided by the delegate mechanism.
internal class DelegateViewController: ProfileViewController {

//mark: - IBOutlet
// MARK: - IBOutlet
@IBOutlet var profileBackgroundView: UIView?
@IBOutlet var avatarVerticalPositionConstraint: NSLayoutConstraint?

//mark: - View Lifecycle
// MARK: - View Lifecycle
override func viewDidLoad() {
super.viewDidLoad()

Expand All @@ -48,7 +48,7 @@ internal class DelegateViewController: ProfileViewController {
}
}

//mark: - Protocol Conformance | CoachMarksControllerDataSource
// MARK: - Protocol Conformance | CoachMarksControllerDataSource
extension DelegateViewController: CoachMarksControllerDataSource {
func numberOfCoachMarks(for coachMarksController: CoachMarksController) -> Int {
return 5
Expand Down Expand Up @@ -100,7 +100,7 @@ extension DelegateViewController: CoachMarksControllerDataSource {
}
}

//mark: - Protocol Conformance | CoachMarksControllerDelegate
// MARK: - Protocol Conformance | CoachMarksControllerDelegate
extension DelegateViewController: CoachMarksControllerDelegate {
func coachMarksController(_ coachMarksController: CoachMarksController, willShow coachMark: inout CoachMark, at index: Int) {
if index == 0 {
Expand Down
8 changes: 4 additions & 4 deletions Examples/Example/MixedCoachMarksViewController.swift
Expand Up @@ -26,15 +26,15 @@ import Instructions

// This class mix different kind of coach marks together.
internal class MixedCoachMarksViewsViewController: ProfileViewController {
//mark: - IBOutlet
// MARK: - IBOutlet
@IBOutlet var answersLabel: UILabel?

//mark: - Private properties
// MARK: - Private properties
fileprivate let swipeImage = UIImage(named: "swipe")

fileprivate let answersText = "That's the number of answers you gave."

//mark: - View Lifecycle
// MARK: - View Lifecycle
override func viewDidLoad() {
super.viewDidLoad()

Expand All @@ -44,7 +44,7 @@ internal class MixedCoachMarksViewsViewController: ProfileViewController {
}
}

//mark: - Protocol Conformance | CoachMarksControllerDataSource
// MARK: - Protocol Conformance | CoachMarksControllerDataSource
extension MixedCoachMarksViewsViewController: CoachMarksControllerDataSource {
func numberOfCoachMarks(for coachMarksController: CoachMarksController) -> Int {
return 5
Expand Down
4 changes: 2 additions & 2 deletions Examples/Example/OnlyHintsViewController.swift
Expand Up @@ -27,7 +27,7 @@ import Instructions
// That's the default controller, using every defaults made available by Instructions.
// It can't get any simpler.
internal class OnlyHintViewController: ProfileViewController {
//mark: - View Lifecycle
// MARK: - View Lifecycle
override func viewDidLoad() {
super.viewDidLoad()

Expand All @@ -44,7 +44,7 @@ internal class OnlyHintViewController: ProfileViewController {
}
}

//mark: - Protocol Conformance | CoachMarksControllerDataSource
// MARK: - Protocol Conformance | CoachMarksControllerDataSource
extension OnlyHintViewController: CoachMarksControllerDataSource {
func numberOfCoachMarks(for coachMarksController: CoachMarksController) -> Int {
return 5
Expand Down
6 changes: 3 additions & 3 deletions Examples/Example/ProfileViewController.swift
Expand Up @@ -25,14 +25,14 @@ import Instructions

/// This class serves as a base for all the other examples
internal class ProfileViewController: UIViewController {
//mark: - IBOutlet
// MARK: - IBOutlet
@IBOutlet var handleLabel: UILabel?
@IBOutlet var emailLabel: UILabel?
@IBOutlet var postsLabel: UILabel?
@IBOutlet var reputationLabel: UILabel?
@IBOutlet var avatar: UIImageView?

//mark: - Public properties
// MARK: - Public properties
var coachMarksController: CoachMarksController?

let avatarText = "That's your profile picture. You look gorgeous!"
Expand All @@ -44,7 +44,7 @@ internal class ProfileViewController: UIViewController {

let nextButtonText = "Ok!"

//mark: - View lifecycle
// MARK: - View lifecycle
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
Expand Down
6 changes: 3 additions & 3 deletions Examples/Example/TestFlowViewController.swift
Expand Up @@ -33,7 +33,7 @@ class TestFlowViewController: ProfileViewController {

@IBOutlet var tapMeButton : UIButton!

//mark: - View Lifecycle
// MARK: - View Lifecycle
override func viewDidLoad() {
super.viewDidLoad()

Expand Down Expand Up @@ -64,7 +64,7 @@ class TestFlowViewController: ProfileViewController {
}
}

//mark: - Protocol Conformance | CoachMarksControllerDataSource
// MARK: - Protocol Conformance | CoachMarksControllerDataSource
extension TestFlowViewController: CoachMarksControllerDataSource {
func numberOfCoachMarks(for coachMarksController: CoachMarksController) -> Int {
print("numberOfCoachMarksForCoachMarksController: \(index)")
Expand Down Expand Up @@ -113,7 +113,7 @@ extension TestFlowViewController: CoachMarksControllerDataSource {
}
}

//mark: - Protocol Conformance | CoachMarksControllerDelegate
// MARK: - Protocol Conformance | CoachMarksControllerDelegate
extension TestFlowViewController: CoachMarksControllerDelegate {
func coachMarksController(_ coachMarksController: CoachMarksController,
willLoadCoachMarkAt index: Int) -> Bool {
Expand Down
6 changes: 3 additions & 3 deletions Examples/Example/TransitionFromCodeViewController.swift
Expand Up @@ -36,7 +36,7 @@ internal class TransitionFromCodeViewController: ProfileViewController {

@IBOutlet var tapMeButton : UIButton!

//mark: - View Lifecycle
// MARK: - View Lifecycle
override func viewDidLoad() {
super.viewDidLoad()

Expand Down Expand Up @@ -64,7 +64,7 @@ internal class TransitionFromCodeViewController: ProfileViewController {
}
}

//mark: - Protocol Conformance | CoachMarksControllerDataSource
// MARK: - Protocol Conformance | CoachMarksControllerDataSource
extension TransitionFromCodeViewController: CoachMarksControllerDataSource {
func numberOfCoachMarks(for coachMarksController: CoachMarksController) -> Int {
return 6
Expand Down Expand Up @@ -142,7 +142,7 @@ extension TransitionFromCodeViewController: CoachMarksControllerDataSource {
}
}

//mark: - Protocol Conformance | CoachMarksControllerDelegate
// MARK: - Protocol Conformance | CoachMarksControllerDelegate
extension TransitionFromCodeViewController: CoachMarksControllerDelegate {
func coachMarksController(_ coachMarksController: CoachMarksController, willLoadCoachMarkAt index: Int) -> Bool {
switch(index) {
Expand Down
2 changes: 1 addition & 1 deletion Examples/Example/TransparentCoachMarkArrowView.swift
Expand Up @@ -25,7 +25,7 @@ import Instructions

// Transparent coach mark (text without background, cool arrow)
internal class TransparentCoachMarkArrowView : UIImageView, CoachMarkArrowView {
//mark: - Initialization
// MARK: - Initialization
init(orientation: CoachMarkArrowOrientation) {
if orientation == .top {
super.init(image: UIImage(named: "arrow-top"))
Expand Down
6 changes: 3 additions & 3 deletions Examples/Example/TransparentCoachMarkBodyView.swift
Expand Up @@ -25,7 +25,7 @@ import Instructions

// Transparent coach mark (text without background, cool arrow)
internal class TransparentCoachMarkBodyView : UIControl, CoachMarkBodyView {
// mark: - Internal properties
// MARK: - Internal properties
var nextControl: UIControl? {
get {
return self
Expand All @@ -36,7 +36,7 @@ internal class TransparentCoachMarkBodyView : UIControl, CoachMarkBodyView {

var hintLabel = UITextView()

// mark: - Initialization
// MARK: - Initialization
override init (frame: CGRect) {
super.init(frame: frame)

Expand All @@ -51,7 +51,7 @@ internal class TransparentCoachMarkBodyView : UIControl, CoachMarkBodyView {
fatalError("This class does not support NSCoding.")
}

// mark: - Private methods
// MARK: - Private methods
fileprivate func setupInnerViewHierarchy() {
self.translatesAutoresizingMaskIntoConstraints = false

Expand Down

0 comments on commit 22c1648

Please sign in to comment.