From the course: Making Your Own CocoaPod with Swift

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Extend UIImageView

Extend UIImageView

- [Instructor] First things first, let's go to the ReplaceMe.swift file inside the Development Pods folder and delete it. I'm just going to right-click, hit delete, and select move to trash. Now, in the same spot, under the Development Pods and then the sub-folder HFSuperImages, I'm going to right-click and select New File. I want this to be a Swift File, and I hit Next. I'm going to name this UIImageViewExtensions. Now this is really important, where you save this in the project. So right now, this would just save this in the root, and we don't actually want that. We want all our pod code to be saved under our Classes subfolder, which is only visible in the Finder right now. So just make sure that's selected as the destination, and hit Create. Now the reason we're saving it into our Classes folder is because that's where the Source Files path is looking. So when we go to validate, this'll stop a lot of errors from popping up. Now this is going to be a really simple swift file, and…

Contents