Skip to content

Instantly share code, notes, and snippets.

@heriwijoyo
heriwijoyo / newspaper-column-code-style-burner.swift
Created April 6, 2017 06:25
Swift Script to Fixing Inconvenience Indentation
#!/usr/bin/env xcrun swift
import Foundation
func isFolderPath(pathURL: NSURL) -> Bool {
var isDir: ObjCBool = false
guard let path = pathURL.path else {
return false
}
internal class OnboardingViewController: UIViewController {
...
private func pushRegistrationPage() {
let registerViewController = RegisterViewController()
navigationController?.pushViewController(registerViewController, animated: true)
}
private func pushLoginPage() {
let loginViewController = LoginViewController()
class LoginViewController: UIViewController {
...
@IBAction func signUpButtonTapped(sender: UIButton) {
let viewController = RegisterViewController()
self.navigationController?.pushViewController(viewController, animated: true)
}
func backToPreviousScreen() {
self.navigationController?.popToRootViewControllerAnimated(true)
// taken from release/0.2
internal class OnboardingViewController: UIViewController {
...
private func pushRegistrationPage() {
let registerViewController = RegisterViewController()
navigationController?.pushViewController(registerViewController, animated: true)
}