Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uptechteam/uptech-ios-helpers

iOS helper library that contains commonly used code in Uptech iOS projects.
https://github.com/uptechteam/uptech-ios-helpers

Last synced: 4 days ago
JSON representation

iOS helper library that contains commonly used code in Uptech iOS projects.

Awesome Lists containing this project

README

        

# Uptech-iOS-Helpers

[![Made in Ukraine](https://img.shields.io/badge/made_in-ukraine-ffd700.svg?labelColor=0057b7)](https://stand-with-ukraine.pp.ua)

iOS helper library that contains commonly used code in **Uptech** iOS projects.

## What's included
- Protocols
- **ReusableCell**

Protocol that helps with reusable cells.

If used on UITableViewCell subclasses provides handy methods for registering and dequeueing cells in UITableView's

- **NibInitializable**

Protocol that helps to initialize view with xib.
- Table & Collection View helpers
- *dequeue* and *register* methods for cells that confirm's to **ReusableCell** and optionally **NibInitializable** (for cell's created via xibs)
- UI-in-code helpers
- UIView extensions:
- subview adding, insertions *with* constrains
- corner radius
- NSLayoutConstraint:
- priority changing method
- constraint activation method for array of constrains
- UILayoutPriority:
- frequently used values
- Array extensions
- safe subscript
- next, previous, remove *Element* methods
- Collection:
- subscript by indexPath

## Installation

#### Swift Package Manager
*Note: Instructions below are for using SwiftPM without the Xcode UI. It's the easiest to go to your Project Settings -> Swift Packages and add Package from there using link https://github.com/uptechteam/Uptech-iOS-Helpers.git*

To integrate using Apple's Swift package manager, without Xcode integration, add the following as a dependency to your Package.swift:
```swift
.package(url: "https://github.com/uptechteam/Uptech-iOS-Helpers.git", .upToNextMajor(from: "1.0.0"))
```

#### CocoaPods

```rb
pod 'Uptech_iOS_Helpers'
```