I read the Apple\'s reference about access modifiers in Swift 3. I read also about the same on stackoverflow but I didn\'t get an answer as the person who asked. As I unders
• Public - Can be used from any module but can’t be subclassed outside defining module (target).
• Internal - This is default access modifier in swift. Can be accessible from the defining module (target) only.
• Open - Can be used from any module and can be subclassed outside defining module (target).
• Swift 4+
• Fileprivate - Fileprivate members and functions are accessible within the same file, within the extension in same file, and extension in other file also.
• Private - Private members and functions are accessible within the same file, within the extension in same file.