Swiftpack.co -  immortal-it/IMITextView as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
immortal-it/IMITextView
IMITextView provides background effects of textView like Instagram in iOS
.package(url: "https://github.com/immortal-it/IMITextView.git", from: "0.0.1")

IMITextView

Pod Version Pod Platform Pod License CocoaPods compatible Carthage Compatible

IMITextView provides background effects of textView like Instagram in iOS.

Requirements

  • iOS 11.0+
  • Xcode 12+
  • Swift 5.0+

Installation

From CocoaPods

CocoaPods is a dependency manager for Cocoa projects, which automates and simplifies the process of using 3rd-party libraries like IMITextView in your projects. First, add the following line to your Podfile:

pod 'IMITextView'

If you want to use the latest features of IMITextView use normal external source dependencies.

pod 'IMITextView', :git => 'https://github.com/immortal-it/IMITextView.git'

This pulls from the main branch directly.

Second, install IMITextView into your project:

pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate IMITextView into your Xcode project using Carthage, specify it in your Cartfile:

github "immortal-it/IMITextView" ~> 0.0.1

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but IMITextView does support its use on supported platforms.

Once you have your Swift package set up, adding IMITextView as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/immortal-it/IMITextView", .upToNextMajor(from: "0.0.1"))
]

Manually

  • Drag the immortal-it/IMITextView folder into your project.

Usage

(see sample Xcode project in Demon)

  • Line Background

let textView = IMITextView()
textView.configuration.lineBackgroundOptions = .fill
  • Line Background Boder

let textView = IMITextView()
textView.configuration.lineBackgroundOptions = .boder
  • Stroke Outer

let textView = IMITextView()
textView.configuration.isStrokeOuter = true
textView.configuration.strokeWidth = 10.0
textView.configuration.strokeColor = .red

Customization

IMITextView can be customized via the Configuration

License

IMITextView is distributed under the terms and conditions of the MIT license.

GitHub

link
Stars: 0
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

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