I have a custom frame work and it contains some public class.But i cannot able to use that public class. In objective C we can import as
#import <XYZ/XYZCustomCell.h>
but how is it possible in swift
You import a module using the "import" keyword, it works the following way:
import XYZ
If you want to import a struct/function/enum only, you can do this:
import struct XYZ.SomeStruct
import func XYZ.someFunc
That syntax fits for typealias, struct, class, enum, protocol, var, or func.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With