Swiftpack.co - jrsaruo/UIKitComponents as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jrsaruo.
jrsaruo/UIKitComponents 1.0.2
Reusable UI components built with UIKit.
⭐️ 0
🕓 2 weeks ago
iOS tvOS
.package(url: "https://github.com/jrsaruo/UIKitComponents.git", from: "1.0.2")


Reusable UI components built with UIKit.


  • iOS 13.0+ / tvOS 13.0+
  • Swift 5.6+



UITextView with a placeholder.

let textView = TextViewWithPlaceholder()
textView.placeholder = "email@example.com"

// 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...

Using UIKitComponents in your project

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.2"),

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.


Stars: 0
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Release 1.0.2
2 weeks ago

What's Changed

💊 Bug Fixes

Other Changes

Full Changelog: https://github.com/jrsaruo/UIKitComponents/compare/1.0.1...1.0.2

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics