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: 18 days ago
JSON representation
iOS helper library that contains commonly used code in Uptech iOS projects.
- Host: GitHub
- URL: https://github.com/uptechteam/uptech-ios-helpers
- Owner: uptechteam
- License: mit
- Created: 2022-03-30T16:22:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-20T11:52:31.000Z (5 months ago)
- Last Synced: 2025-04-19T13:46:42.048Z (2 months ago)
- Language: Swift
- Size: 48.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Uptech-iOS-Helpers
[](https://stand-with-ukraine.pp.ua)
iOS helper library that contains commonly used code in **Uptech** iOS projects.
## What's included
🔧 Foundation Helpers
- Array extensions
- safe subscript
- next, previous, remove *Element* methods
- Collection:
- subscript by indexPath
🖼️ UIKit Helpers
- 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
🕊️ SwiftUI helpers
- Layouts
- ProportionalHStack and ProportionalVStack
- Layouts that resizes views with given proportions- View extensions
- conditionalModifiers (if, if/else), regular modifier
- customOnChange
- size/frame/offset/safeAreaInsets readers## 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*Package contains 4 libraries:
- UptechFoundationHelper
- UptechUIKitHelper
- UptechSwiftUIHelper
- Uptech-iOS-Helpers (first 3 combined)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: "2.0.1"))
```#### CocoaPods
> [!CAUTION]
> CocoaPods is deprecated starting with version 2.0.0