UtilityTools is a Swift Package Manager (SPM) package that provides day-to-day extensions and convenient code snippets to accelerate your development process. Initially focused on date-related utilities, the package is designed to expand and incorporate more tools over time.
To integrate this library into your Xcode project using Swift Package Manager, follow these steps:
- Open your Xcode project.
- Navigate to the menu
File > Swift Packages > Add Package Dependency.... - Enter the following URL of this repository:
git@github.com:VictorKreniski/UtilityTools.git. - Click Next and select the version or branch you want to use.
- Click Next and then Finish.
The library will be automatically resolved and linked with your Xcode project.
Once you've added the package to your project, you can start using the networking capabilities.
In the Swift file where you want to use the networking library, import it at the top:
import UtilityToolslet combinedDate = someDate.combineDate(time: someTime)let allMonthDays = someDate.createAllMonthDays()let endOfDay = someDate.endOfDay()if let weeklyDates = someDate.generateWeekDates(since: startOfWeekDate) {
// Use weeklyDates array
}let isToday = someDate.isToday()
let isAtLeastToday = someDate.isAtLeastToday()
let isBiggerThanToday = someDate.isBiggerThanToday()let startOfDay = someDate.startOfDay()
let startOfWeek = someDate.startOfWeek()Contributions to UtilityTools are welcome! If you have additional extensions or features that could benefit the community, feel free to open a pull request.
UtilityTools is released under the MIT License.
Feel free to modify any other sections or add more details based on your project's requirements.