//
//  SwitchStyle.swift
//  Nori
//
//  Created by yukiasai on 11/22/16.
//  Copyright © 2016 yukiasai. All rights reserved.
//

public class SwitchStyle: ViewStyle {
    public var onTintColor: UIColor?
    
    public convenience init(closure: (SwitchStyle) -> Void) {
        self.init()
        closure(self)
    }
}

//
//  SwitchStyle.swift
//  Nori
//
//  Created by yukiasai on 11/22/16.
//  Copyright © 2016 yukiasai. All rights reserved.
//

public class SwitchStyle: ViewStyle {
    var onTintColor: UIColor?
}

--- 
+++ 
@@ -7,5 +7,10 @@
 //
 
 public class SwitchStyle: ViewStyle {
-    var onTintColor: UIColor?
+    public var onTintColor: UIColor?
+    
+    public convenience init(closure: (SwitchStyle) -> Void) {
+        self.init()
+        closure(self)
+    }
 }
Access control of properties to public, and make initializer
