Created
July 10, 2017 22:07
-
-
Save Morbix/64ac442832823107627f7c19c6ff4d7a to your computer and use it in GitHub Desktop.
bundle from cocoa pod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let frameworkBundle = Bundle(for: IniciaisImageView.self) | |
guard let bundleURL = frameworkBundle.resourceURL?.appendingPathComponent("AgiplanUtils.bundle") else { return } | |
let resourceBundle = Bundle(url: bundleURL) | |
guard let view = resourceBundle?.loadNibNamed("IniciaisImageView", owner: self, options: nil)?.first as? UIView else { | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment