Use CocoaPods with Swift XCode project
Swift Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Pods
SwiftWithPods.xcodeproj
SwiftWithPods.xcworkspace/xcshareddata
SwiftWithPods
SwiftWithPodsTests
Podfile.lock
README.md
podfile

README.md

Swift-With-CocoaPods

Using CocoaPods libraries is not a big deal. You can use them only by adding a bridging header in your swift project. Here is short example. I have install MBProgressHUD in Pods and using that inside Swift code.

You only need to Add a Bridging-Header between CocoaPod and your Swift project. When you try to add any Objective-C file in Swift project, XCode gives you option for this migration. When you confirm this, you are able to access Objective-C files in Swift.