Reusable UI components built with UIKit.
TextViewWithPlaceholder
UITextView
with a placeholder.
let textView = TextViewWithPlaceholder()
textView.placeholder = "[email protected]"
// The appearance of the placeholder follows that of text view.
textView.font = .preferredFont(forTextStyle: .body)
textView.textAlignment = .center
textView.textContainerInset = .zero
textView.textContainer.lineFragmentPadding = 0
// etc...
To use the UIKitComponents
library in a SwiftPM project, add the following line to the dependencies in your Package.swift
file:
.package(url: "https://github.com/jrsaruo/UIKitComponents", from: "1.0.4"),
and add UIKitComponents
as a dependency for your target:
.target(name: "<target>", dependencies: [
.product(name: "UIKitComponents", package: "UIKitComponents"),
// other dependencies
]),
Finally, add import UIKitComponents
in your source code.
link |
Stars: 2 |
Last commit: 30 weeks ago |
Full Changelog: https://github.com/jrsaruo/UIKitComponents/compare/1.0.3...1.0.4
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics