Skip to content
This repository was archived by the owner on Sep 25, 2021. It is now read-only.

Changing enums to camel case #139

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updating demo project to use camel case action enum
ClaireDavis committed May 29, 2018
commit 63736a9d02725d593adc19511ad84efcf0dda5b5
6 changes: 3 additions & 3 deletions TurbolinksDemo/ApplicationController.swift
Original file line number Diff line number Diff line change
@@ -33,12 +33,12 @@ class ApplicationController: UINavigationController {
presentVisitableForSession(session, url: url)
}

fileprivate func presentVisitableForSession(_ session: Session, url: URL, action: Action = .Advance) {
fileprivate func presentVisitableForSession(_ session: Session, url: URL, action: Action = .advance) {
let visitable = DemoViewController(url: url)

if action == .Advance {
if action == .advance {
pushViewController(visitable, animated: true)
} else if action == .Replace {
} else if action == .replace {
popViewController(animated: false)
pushViewController(visitable, animated: false)
}