What is a good example to differentiate between fileprivate and private in Swift3

前端 未结 10 1067
醉梦人生
醉梦人生 2020-11-27 10:03

This article has been helpful in understanding the new access specifiers in Swift 3. It also gives some examples of different usages of fileprivate

10条回答
  •  轮回少年
    2020-11-27 10:16

    I just draw a diagram about private, fileprivate, open and public

    Hope it can quickly help you , for text description please refer to Martin R 's answer

    [ Update Swift 4, 5 ]

提交回复
热议问题