My XIBView package is a package that contains mandatory XIB methods when we create a custom view.
-
Add the project as a Swift package. Add the following line to your
Package.swift
file:.package(url: "(https://github.com/furkanfatihkok/XIBView)", from: "1.0.0")
-
Add the project to your target package and start using it.
We add it into the created custom View by saying import XIBView. Immediately afterwards, we call the override and required methods and add the configureNibView() function and our project becomes operational.