IMITextView
provides background effects of textView like Instagram in iOS.
- iOS 11.0+
- Xcode 12+
- Swift 5.0+
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 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
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"))
]
- Drag the
immortal-it/IMITextView
folder into your project.
(see sample Xcode project in Demon
)
let textView = IMITextView()
textView.configuration.lineBackgroundOptions = .fill
let textView = IMITextView()
textView.configuration.lineBackgroundOptions = .boder
let textView = IMITextView()
textView.configuration.isStrokeOuter = true
textView.configuration.strokeWidth = 10.0
textView.configuration.strokeColor = .red
IMITextView
can be customized via the Configuration
IMITextView
is distributed under the terms and conditions of the MIT license.