Swift fileprivate vs private
In Swift: fileprivate means an entity that is accessible anywhere in that file. private means an entity that cannot be accessed anywhere except for the enclosing type, such as a class. In a sense, fileprivate means “private, but not in this file”. For example: Here number1 was successfully printed, because it is fileprivate and thus …