Hey, I'm having issues setting up the slider with swift.
     let listSlider = CategorySliderView.init(frame: CGRectMake(0 , 0, 60, self.view.frame.width),
            andCategoryViews: List.getAll(),
            sliderDirection: SliderDirection.Horizontal,
            categorySelectionBlock: { (categoryView: UIView!, index: Int) -> Void in
                print("index: \(index)")
        })
or
        let listSlider = CategorySliderView(sliderHeight: 60.0,
            andCategoryViews: List.getAll()) { (categoryView: UIView!, index: Int) -> Void in
                print("index: \(index)")
        }
Either way, I'm getting the error I'm getting below:
2016-01-24 18:18:34.220 CelebrityScore[84554:3132239] -[Swift._NSContiguousString frame]: unrecognized selector sent to instance 0x7f84b3d46770
2016-01-24 18:18:34.228 CelebrityScore[84554:3132239] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Swift._NSContiguousString frame]: unrecognized selector sent to instance 0x7f84b3d46770'
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000113111e65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x0000000112b8adeb objc_exception_throw + 48
    2   CoreFoundation                      0x000000011311a48d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3   CoreFoundation                      0x000000011306790a ___forwarding___ + 970
    4   CoreFoundation                      0x00000001131132d8 __forwarding_prep_1___ + 120
    5   CategorySliderView                  0x000000010f641c8a -[CategorySliderView addCategoryView:] + 618
    6   CategorySliderView                  0x000000010f641913 -[CategorySliderView initWithFrame:andCategoryViews:sliderDirection:categorySelectionBlock:] + 1603
    7   CelebrityScore                      0x000000010ee46b93 _TTOFCSo18CategorySliderViewcfMS_FT5frameVSC6CGRect16andCategoryViewsGSQGSaPSs9AnyObject___15sliderDirectionOSC15SliderDirection22categorySelectionBlockGSQFTGSQCSo6UIView_Si_T___GSQS__ + 499
    8   CelebrityScore                      0x000000010ee4588a _TFCSo18CategorySliderViewCfMS_FT5frameVSC6CGRect16andCategoryViewsGSQGSaPSs9AnyObject___15sliderDirectionOSC15SliderDirection22categorySelectionBlockGSQFTGSQCSo6UIView_Si_T___GSQS__ + 186
    9   CelebrityScore                      0x000000010ee3f039 _TFC14CelebrityScore20MasterViewControllercfMS0_FT9viewModelCS_17CelScoreViewModel_S0_ + 2153
    10  CelebrityScore                      0x000000010ee3f743 _TFC14CelebrityScore20MasterViewControllerCfMS0_FT9viewModelCS_17CelScoreViewModel_S0_ + 67
    11  CelebrityScore                      0x000000010ee39a1f _TFC14CelebrityScore11AppDelegate11applicationfS0_FTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVSs10DictionaryCSo8NSObjectPSs9AnyObject____Sb + 1663
    12  CelebrityScore                      0x000000010ee3a253 _TToFC14CelebrityScore11AppDelegate11applicationfS0_FTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVSs10DictionaryCSo8NSObjectPSs9AnyObject____Sb + 179
    13  UIKit                               0x000000011153e1f1 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 272
    14  UIKit                               0x000000011153f397 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3415
    15  UIKit                               0x0000000111545cc6 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1760
    16  UIKit                               0x0000000111542e7b -[UIApplication workspaceDidEndTransaction:] + 188
    17  FrontBoardServices                  0x00000001183f7754 -[FBSSerialQueue _performNext] + 192
    18  FrontBoardServices                  0x00000001183f7ac2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    19  CoreFoundation                      0x000000011303da31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    20  CoreFoundation                      0x000000011303395c __CFRunLoopDoSources0 + 556
    21  CoreFoundation                      0x0000000113032e13 __CFRunLoopRun + 867
    22  CoreFoundation                      0x0000000113032828 CFRunLoopRunSpecific + 488
    23  UIKit                               0x00000001115427cd -[UIApplication _run] + 402
    24  UIKit                               0x0000000111547610 UIApplicationMain + 171
    25  CelebrityScore                      0x000000010ee3b50d main + 109
    26  libdyld.dylib                       0x000000011490192d start + 1
How would you recommend to set up the slider in swift?