uikit-components

所属分类:前端开发
开发工具:Swift
文件大小:258KB
下载次数:0
上传日期:2023-03-06 08:37:47
上 传 者sh-1993
说明:  用于以编程方式设置UIKit组件的基本组件。
(Basic components for setting up UIKit components programmatically.)

文件列表:
LICENSE (1068, 2023-03-06)
Package.swift (821, 2023-03-06)
Sources (0, 2023-03-06)
Sources\UIKitComponents (0, 2023-03-06)
Sources\UIKitComponents\Extensions (0, 2023-03-06)
Sources\UIKitComponents\Extensions\CellIdentifier.swift (503, 2023-03-06)
Sources\UIKitComponents\Extensions\NSFetchedResultsController.swift (517, 2023-03-06)
Sources\UIKitComponents\Extensions\Priorities.swift (1155, 2023-03-06)
Sources\UIKitComponents\Extensions\String.swift (733, 2023-03-06)
Sources\UIKitComponents\Extensions\UICollectionView.swift (379, 2023-03-06)
Sources\UIKitComponents\Extensions\UIColor.swift (2594, 2023-03-06)
Sources\UIKitComponents\Extensions\UIImage.swift (6406, 2023-03-06)
Sources\UIKitComponents\Extensions\UIScreen.swift (640, 2023-03-06)
Sources\UIKitComponents\Extensions\UIScrollView.swift (359, 2023-03-06)
Sources\UIKitComponents\Extensions\UITextField.swift (700, 2023-03-06)
Sources\UIKitComponents\Extensions\UIView.swift (5573, 2023-03-06)
Sources\UIKitComponents\Views (0, 2023-03-06)
Sources\UIKitComponents\Views\Buttons (0, 2023-03-06)
Sources\UIKitComponents\Views\Buttons\BaseButtonWithImage.swift (1238, 2023-03-06)
Sources\UIKitComponents\Views\Buttons\BaseButtonWithText.swift (1540, 2023-03-06)
Sources\UIKitComponents\Views\Cells (0, 2023-03-06)
Sources\UIKitComponents\Views\Cells\BaseCollectionViewCell.swift (887, 2023-03-06)
Sources\UIKitComponents\Views\Controllers (0, 2023-03-06)
Sources\UIKitComponents\Views\Controllers\BaseCollectionViewController.swift (770, 2023-03-06)
Sources\UIKitComponents\Views\Controllers\BaseNavigationController.swift (534, 2023-03-06)
Sources\UIKitComponents\Views\Subclasses (0, 2023-03-06)
Sources\UIKitComponents\Views\Subclasses\BaseImageView.swift (1081, 2023-03-06)
Sources\UIKitComponents\Views\Subclasses\BaseLabel.swift (1507, 2023-03-06)
Sources\UIKitComponents\Views\Subclasses\BaseStackView.swift (693, 2023-03-06)
Sources\UIKitComponents\Views\Subclasses\BaseTextField.swift (2266, 2023-03-06)
Sources\UIKitComponents\Views\Subclasses\BaseTextView.swift (2980, 2023-03-06)
Sources\UIKitComponents\Views\Subclasses\BaseView.swift (587, 2023-03-06)
UIKitComponentsExample (0, 2023-03-06)
... ...

# UIKit Components Package This repository contains basic components for setting up UIKit components programmatically. It is made by **[SPACE SQUAD](https://www.spacesquad.de)**! We make great software with in Berlin. --- ## Content - [Features](#features) - [Screenshots](#screenshots) - [Installation](#installation) - [How to Use](#how-to-use) ## Features This package contains extensions for easily setting up AutoLayout as well as basic components to simplify initializing programmatic UI components with UIKit. **Extensions** - [x] Constraining components (with optional custom padding) - [x] Constrain views to fill their superview (with optional custom padding) - [x] Constrain a view as a square - [x] Set width or height of a views - [x] Set inner padding for a UITextField **Components** - [x] BaseNavigationController (to easily override status bar color) - [x] BaseCollectionViewController (to support Flow Layout and orientation change on iPad) - [x] BaseButtonWithImage - [x] BaseButtonWithText - [x] BaseImageView - [x] BaseLabel - [x] BaseStackView - [x] BaseTextField - [x] BaseTextView - [x] BaseView ## Screenshots ## Installation ##### Requirements - iOS 15.0+ - Xcode 13+ - Swift 5+ ##### Swift Package Manager In Xcode, go to `File > Add Packages` and add `https://github.com/space-squad/uikit-components`. Add the package to all your targets. ## How to Use Extensions and components can be accessed by declaring `import UIKitComponents` on top of your file. All components are named after the same schema, like `Base`. To see available components, check out the list above, look at the appended screenshot or check out the example project. There is no further setup needed. All views have custom initializers to set properties of your view, some of which are required. Please check our example project on how to implement the components and use the extensions. In addition, we added custom delegates to **BaseTextView** and **BaseTextField** to support subscribing to whether they are currently in editing mode and to continously read the user's input. See the example code on how to subscribe to their values using the Combine framework.

近期下载者

相关文件


收藏者