JLStickerTextView alternatives and similar libraries
Based on the "Images" category.
Alternatively, view JLStickerTextView alternatives based on common mentions on social networks and blogs.
-
SDWebImage
Asynchronous image downloader with cache support as a UIImageView category -
Kingfisher
A lightweight, pure-Swift library for downloading and caching images from the web. -
SwiftGen-Assets
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
HanekeSwift
A lightweight generic cache for iOS written in Swift with extra love for images. -
GPUImage 2
GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing. -
YPImagePicker
📸 Instagram-like image picker & filters for iOS -
SkyFloatingLabelTextField
A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift. -
AlamofireImage
AlamofireImage is an image component library for Alamofire -
UIImageColors
Fetches the most dominant and prominent colors from an image. -
GPUImage 3
GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal. -
Brightroom
📷 A composable image editor using Core Image and Metal. [Moved to: https://github.com/FluidGroup/Brightroom] -
APNGKit
High performance and delightful way to play with APNG format in iOS. -
TinyCrayon
A smart and easy-to-use image masking and cutout SDK for mobile apps. -
Lightbox
:milky_way: A convenient and easy to use image viewer for your iOS app -
SwiftGif
[UNMAINTAINED] 🌠 A small UIImage extension with gif support -
Sharaku
(Not maintained)Image filtering UI library like Instagram. -
CTPanoramaView
A library that displays spherical or cylindrical panoramas with touch or motion based controls. -
ImageScout
A Swift implementation of fastimage. Supports PNG, GIF, and JPEG. -
FMPhotoPicker
A modern, simple and zero-dependency photo picker with an elegant and customizable image editor -
AXPhotoViewer
An iOS/tvOS photo gallery viewer, useful for viewing a large (or small!) number of photos. -
PassportScanner
Scan the MRZ code of a passport and extract the firstname, lastname, passport number, nationality, date of birth, expiration date and personal numer. -
XAnimatedImage
XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage -
Viewer
Image viewer (or Lightbox) with support for local and remote videos and images -
UIImageView-BetterFace-Swift
autoresize images and if any face discovered refine the position of the image. -
MapleBacon
🍁🥓 Lightweight and fast Swift library for image downloading, caching and transformations -
Moa
An image download extension of the image view written in Swift for iOS, tvOS and macOS. -
KFSwiftImageLoader
An extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memory and disk caching for iOS and Watch. -
ImageLoader
A lightweight and fast image loader for iOS written in Swift. -
MCScratchImageView
A custom ImageView that is used to cover the surface of other view like a scratch card, user can swipe the mulch to see the view below. -
Harbeth
Metal API for GPU accelerated Image and Video and Camera filter framework. Support macOS & iOS. 🎨 图像、视频、相机滤镜框架 -
FacebookImagePicker
FacebookImagePicker is Facebook album photo picker written in Swift. -
ImageDetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api. -
SwiftColorArt
font schema generator according image colours. -
DTPhotoViewerController
A fully customizable photo viewer ViewController to display single photo or collection of photos, inspired by Facebook photo viewer. -
LetterAvatarKit
📲 Use this extension 🧩 to create letter-based avatars or placeholders 🎭 to be utilized within your app
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of JLStickerTextView or a related project?
README
About
StickerTextView is an subclass of UIImageView. You can add multiple text to it, edit, rotate, resize the text as you want with one finger, then render the text on Image.
Features
- You can add multiple Text to StickerTextView at the same time
- Multiple line Text support
- Rotate, resize the text with one finger
- Set the Color, alpha, font, alignment, TextShadow, lineSpacing...... of the text
- StickerTextView also handle the process of rendering text on Image
- Written in Swift
Installation
Manually
Just drag the Source files into your project(To get the latest version, please install manually)
CocoaPods
To integrate StickerTextView into your Xcode project using CocoaPods, specify it in your Podfile and run pod install
:
use_frameworks!
pod "JLStickerTextView", "~> 0.1.1"
To get the latest version:
use_frameworks!
pod "JLStickerTextView", :git =>
"https://github.com/Textcat/JLStickerTextView.git"
Usage
Start
First, import JLStickerTextView
, then subclass the UIImageView, which you want to add text on, to JLStickerImageView, like this:
import JLStickerTextView
class ViewController: UIViewController {
@IBOutlet var stickerView: JLStickerImageView!
}
If you use Storyboard, you also need connect the UIImageView to JLStikcerImageView
Class in Identity Inspector.
Add new Label
It is quite easy to add new label to current StickerImageView:
stickerView.addLabel()
Set the Label
You can set the color, font , alignment, alpha.... of the label.(check all avaliable text attributes)
stickerView.textColor = UIColor.whiteColor()
Note: when you set the properties, you make change to the current selected TextLabel.
Render Text on Image
When you feel good, you are going to render the Text on Image and save the image:
let image = stickerView.renderTextOnView(stickerView)
UIImageWriteToSavedPhotosAlbum(image!, nil, nil, nil)
Customize the StickerTextView appearance
Customize stickerTextView appearance is very strightforward:
//Set the image of close Button
stickerView.currentlyEditingLabel.closeView!.image = UIImage(named: "cancel")
//Set the image of rotate Button
stickerView.currentlyEditingLabel.rotateView?.image = UIImage(named: "rotate")
//Set the border color of textLabel
stickerView.currentlyEditingLabel.border?.strokeColor = UIColor.redColor().CGColor
Note: closeView
and rotateView
are both UIimageView, while border
is CAShapeLayer
Scale stickerView proportionally
This function is not complete yet, I just make it to fit my requirement.
stickerView.limitImageViewToSuperView()
When you render the text on UIImageView whose content mode is AspectFit, it is possible you will get some unwanted border. This function will scale UIImageView to fit the image.
Avaliable Text Attributes Reference(Let's add more 😉)
Key | JLStickerImageView Property |
value Type |
---|---|---|
Font |
.fontName |
String |
Alignment |
.textAlignment |
NSTextAlignment |
Alpha |
.textAlpha |
CGFloat |
textColor |
.textColor |
UIColor |
lineSpacing |
.lineSpacing |
CGFloat |
TextShadow |
.textShadowOffset |
CGSize |
.textShadowColor |
UIColor |
|
.textShadowBlur |
CGFloat |
Contributon
Any suggestion, request, pull are welcome. If you encounter any problem, feel free to create an issue.
If you want to add more text attributes:
- Please fork this project
- Define the attribute you want in
JLAttributedTextView.swift
- implement user interface in
JLStickerImageVIew.swift
- Write appropriate docs and comments in the README.md
- Submit a pull request
Plan
Here are some ideas:
- [ ] More options for text(eg: lineSpacing)
- [x] Interface to customize the appearance of StickerLabelView(close Button, rotate button, border,etc)
- [ ] More general solution for Scaling stickerView proportionally
- [ ] Support placeholder
Reference
Based on
Also inspired by