Skeletonview: Private properties

Created on 9 Nov 2017  路  2Comments  路  Source: Juanpe/SkeletonView

You are using many private properties in public properties, thus it throws accessibility level error and it won't build.

screen shot 2017-11-09 at 13 16 49

鉂攓uestion

Most helpful comment

Hi @LeonardoCardoso, are you using Swift 4? You can check it in the build settings of the framework.
screen shot 2017-11-09 at 19 59 28

In Swift 4, the behaviour of "private" keyword has been modified. If you use the "private" keyword, the property will be visible in this file and extension. You don't need use "fileprivate".

Maybe I could create a new branch for Swift 3, ok?

Thanks

All 2 comments

Hi @LeonardoCardoso, are you using Swift 4? You can check it in the build settings of the framework.
screen shot 2017-11-09 at 19 59 28

In Swift 4, the behaviour of "private" keyword has been modified. If you use the "private" keyword, the property will be visible in this file and extension. You don't need use "fileprivate".

Maybe I could create a new branch for Swift 3, ok?

Thanks

That's fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Erumaru picture Erumaru  路  7Comments

ghost picture ghost  路  7Comments

guidev picture guidev  路  4Comments

aboutsajjad picture aboutsajjad  路  7Comments

raphaklr picture raphaklr  路  5Comments