I have specific coding style for Swift.
- Follow Apple's Cocoa coding style. (Camel case, uppercases for abbreviations, etc.)
- Openign braces
{
at same line.
func exampleFunction1() -> Int {
Well, it's three years ago, and now it works far better.
To add a submodule, first move to the container directory, and type this.
git submodule add http://...
To sync the submodule working tree files to current branch'es current commit, type this.
git submodule update
class AAA { | |
deinit { | |
print("AAA deinit") | |
callbackOnDeinit!(self) | |
} | |
var callbackOnDeinit: (AAA->())? | |
} |
public class MulticastStation<Parameter>: MulticastChannel<Parameter> { | |
public override init() { | |
} | |
public func cast(parameter: Parameter) { | |
_cast(parameter) | |
} | |
public var onDidRegister: ((Callback)->())? { | |
get { | |
return _onDidRegister |
// | |
// FixedViewController.swift | |
// Editor4 | |
// | |
// Created by Hoon H. on 2016/05/10. | |
// Copyright © 2016 Eonil. All rights reserved. | |
// | |
import Foundation | |
import AppKit |
find . -name *.json | xargs sed -i -e 's/\"AAA\"/\"BBB\"/g' |