In swift, how do I make an extension visible to only a few classes and not to all?
I have added an extension to UIImage in a file called UIImage+filters.swift
. I will be using this extension only in 2 classes in my project PhotoImage
and PhotosViewController
. I want the extension to be visible only to these 2 classes. How can I achieve this?