UIKitComponents

1.0.4

Reusable UI components built with UIKit.
jrsaruo/UIKitComponents

What's New

Release 1.0.4

2023-09-22T12:55:34Z

What's Changed

🧰 Maintenance

Other Changes

Full Changelog: 1.0.3...1.0.4

UIKitComponents

Reusable UI components built with UIKit.

Requirements

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

Components

TextViewWithPlaceholder

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

Description

  • Swift Tools 5.6.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Oct 17 2024 20:01:50 GMT-0900 (Hawaii-Aleutian Daylight Time)