๐ฐAccess Control
Last updated
Last updated
ๅญๅๆงๅถๆ้่ฆ็ๅ ฉๅๅ้็บ module ๅ source file๏ผ
module๏ผไธๅ bundle ID ไธ็ app ๆไธๅ frameworkใ
source file๏ผๅฐฑๆฏๆฏไธๅ .swift ๆชๆกใ
ๅ 5 ๅๅฑค็ด๏ผๆ้ซๅฐๆไฝไพๆฌก็บ๏ผ
open / public / internal / file-private / private
The only reason you would use fileprivate is when you want to access your code within the same file from different classes or structs. ๐ SwfitLee
extensions have to be defined within the same file, private declarations are not visible outside the file.