Swiftpack.co - qkrtjrrnjs/MarkupTextView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by qkrtjrrnjs.
qkrtjrrnjs/MarkupTextView 1.0.2
Dynamic textview with auto-resizing height & width that is also movable/draggable.
⭐️ 2
🕓 2 years ago
iOS
.package(url: "https://github.com/qkrtjrrnjs/MarkupTextView.git", from: "1.0.2")

MarkupTextView

Platform License Language: Swift 5 Swift Package Manager

Dynamic textview with auto-resizing height & width that is also movable/draggable.

Requirements

iOS 13 or above

Installation

MarkupTextView is installed via the official Swift Package Manager.

Select Xcode>File> Swift Packages>Add Package Dependency...
and add https://github.com/qkrtjrrnjs/MarkupTextView.

Usage

  • First import MarkupTextView

    import MarkupTextView
    
  • Implementation

    let textView = MarkupTextView()
    textView.placeholder = "Enter Text"             // Default: "Text"
    textView.placeholderColor = .systemGray         // Default: .black
    textView.font = UIFont.systemFont(ofSize: 20) 
    textView.borderColor = .systemGreen             // Default: .systemBlue
    textView.drag = .always                         // Default: .always
    textView.maxHeight = 250                        // Default: UIScreen.main.bounds.size.height
    textView.maxWidth = 250                         // Default: UIScreen.main.bounds.size.width
    

License

MarkupTextView is under MIT license. See the LICENSE file for more information.

GitHub

link
Stars: 2
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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