I want to extend the String class and have that extension availble to entire project. I create a .swift file "String+Extensions.swift"
import Swift
public extension String {
func LogToConsole(){
print(self)
}
}I then one to use this extension in a viewController or class. but I cant not as it does not exist.
let x: String+ExtensionsThe extension is only accesbile if accessed in the same file as where it is defined. Meaning I either have to repeat the extension declaration in each file. I though want it accessed across the entire project.
Is this possible? Makes sense that it would be.