fortmarek / SwipeViewController

SwipeViewController is a Swift modification of RKSwipeBetweenViewControllers - navigate between pages / ViewControllers
MIT License
655 stars 46 forks source link

compile error after upgrade to xCode Version 9.3 (9E145) #30

Closed tempurai closed 6 years ago

tempurai commented 6 years ago

On InterfaceController.swift -->

if buttonDelegate.equalSpaces {
            //Space between buttons
            buttonDelegate.x = (delegate.viewWidth - 2 * buttonDelegate.offset - totalButtonWidth) / CGFloat(buttons.count + 1)
        }

error goes:

Overlapping accesses to 'buttonDelegate', but modification requires exclusive access; consider copying to a local variable
relaxsus commented 6 years ago

How can I solve this problem? after the update the same error

fortmarek commented 6 years ago

Fixed with version 1.1.1, error occurred because of new Swift 4.1 changes.

shshemi commented 6 years ago

Is version 1.1.1 available to install using cocoa pods?

fortmarek commented 6 years ago

Forgot to push the new version to cocoapods, it should work now.