New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift 3 #148
Comments
Same here .. any updates ? |
I did manage to resolve the errors but the |
@SebastianKumor here's how I did it |
@MindaugasJucius thx buddy, it seems like it working, tho I still have crash elsewhere , in a
|
The Swift version is contributed by community, I personally don't adopt to Swift yet. So, welcome to send me a PR. |
Ok guys thx, I managed to make it work |
Hello Sebastian , can you please share your CHT file that works ? Thank you in advance. |
@gsmeros @chiahsien I updated the swift file in fork I created, it works for me https://github.com/SebastianKumor/CHTCollectionViewWaterfallLayout |
@SebastianKumor If it works for you. Please create a new cocoapods for the for the swift version since OP wont support swift. Or create a pull request for OP to create a new branch for? Thanks! |
I've merged this PR #149 |
@rlam3 done, can you please also test it if it works as expected ? thanks |
@SebastianKumor, it works :) . Thanks |
I have an Issue when building this in Xcode 8.1, the layout does not take effect. It just lays everything out in one column. |
@OviBortas same here, for me it crashes on |
Hi, |
@jvk75 tested, and it works. @OviBortas try new update @jvk75 made |
Hi @chiahsien , I tested this on xcode 8.1 and swift 3.0.1 and it works well. |
How did you resolve this ins swift 3 ?
let yOffset = ((self.columnHeights[section] as AnyObject).object(columnIndex) as AnyObject).doubleValue
gives me error 'Cannot call value of non-function type 'Any?!''
(self.columnHeights[section] as AnyObject).enumerateObjects({(object : AnyObject!, idx : NSInteger,pointer :UnsafeMutablePointer) and this one gives error ' Cannot invoke 'enumerateObjects' with an argument list of type '((AnyObject!, NSInteger, UnsafeMutablePointer) -> ())';
I used Xcode 8 converter and this is the result, thx for help
The text was updated successfully, but these errors were encountered: