I have added Stevia using Swift Package Manager as recommended. I am already using Cocoapods for other dependencies.
Right now I have a separate swift file in which I am importing Stevia for use in extension like this
import UIKit
import Stevia
extension UIView {
func vHeight(_ points: CGFloat) {
self.height(points)
}
func vWidth(_ points: CGFloat) {
self.width(points)
}
}
Problem is that this makes Stevia available in whole project. For example if I got to new ViewController and there is no
import Stevia
, I can still access it. I wan't to get rid of this behaviour. Is it possible?