SwiftDraw alternatives and similar libraries
Based on the "Images" category.
Alternatively, view SwiftDraw 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! -
GPUImage 2
GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing. -
HanekeSwift
A lightweight generic cache for iOS written in Swift with extra love for images. -
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 -
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 -
JLStickerTextView
add text(multiple line support) to imageView, edit, rotate or resize them as you want, then render the text on image -
UIImageView-BetterFace-Swift
autoresize images and if any face discovered refine the position of the image. -
Moa
An image download extension of the image view written in Swift for iOS, tvOS and macOS. -
MapleBacon
🍁🥓 Lightweight and fast Swift library for image downloading, caching and transformations -
KFSwiftImageLoader
An extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memory and disk caching for iOS and Watch. -
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. -
ImageLoader
A lightweight and fast image loader for iOS written in Swift. -
ImageDetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api. -
DTPhotoViewerController
A fully customizable photo viewer ViewController to display single photo or collection of photos, inspired by Facebook photo viewer. -
FacebookImagePicker
FacebookImagePicker is Facebook album photo picker written in Swift. -
Harbeth
Metal API for GPU accelerated Image and Video and Camera filter framework. Support macOS & iOS. 🎨 图像、视频、相机滤镜框架
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 SwiftDraw or a related project?
README
SwiftDraw
A Swift library for parsing and drawing SVG images to CoreGraphics contexts. SwiftDraw can also convert an SVG into Swift source code.
Usage
iOS
import SwiftDraw
let image = UIImage(svgNamed: "sample.svg")
macOS
import SwiftDraw
let image = NSImage(svgNamed: "sample.svg")
Command line tool
Download the latest command line tool here.
$ swiftdraw sample.svg --format pdf --size 48x48
Source code generation
Source code can be generated using www.whileloop.com/swiftdraw.
The command line tool can also convert an SVG image into Swift source code:
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="160" height="160">
<rect width="160" height="160" fill="snow" />
<path d="m 80 20 a 50 50 0 1 0 50 50 h -50 z" fill="pink" stroke="black" stroke-width="2"/>
</svg>
$ swiftdraw simple.svg --format swift
extension UIImage {
static func svgSimple() -> UIImage {
let f = UIGraphicsImageRendererFormat.default()
f.opaque = false
f.preferredRange = .standard
return UIGraphicsImageRenderer(size: CGSize(width: 160.0, height: 160.0), format: f).image {
drawSVG(in: $0.cgContext)
}
}
private static func drawSVG(in ctx: CGContext) {
let rgb = CGColorSpaceCreateDeviceRGB()
let color1 = CGColor(colorSpace: rgb, components: [1.0, 0.98039216, 0.98039216, 1.0])!
ctx.setFillColor(color1)
let path = CGPath(
roundedRect: CGRect(x: 0.0, y: 0.0, width: 160.0, height: 160.0),
cornerWidth: 0.0,
cornerHeight: 0.0,
transform: nil
)
ctx.addPath(path)
ctx.fillPath(using: .evenOdd)
let color2 = CGColor(colorSpace: rgb, components: [1.0, 0.7529412, 0.79607844, 1.0])!
ctx.setFillColor(color2)
let path1 = CGMutablePath()
path1.move(to: CGPoint(x: 80.0, y: 20.0))
path1.addCurve(to: CGPoint(x: 30.0, y: 69.99999),
control1: CGPoint(x: 52.38576, y: 20.0),
control2: CGPoint(x: 30.000004, y: 42.385757))
path1.addCurve(to: CGPoint(x: 79.99998, y: 120.0),
control1: CGPoint(x: 29.999992, y: 97.61423),
control2: CGPoint(x: 52.385742, y: 119.999985))
path1.addCurve(to: CGPoint(x: 130.0, y: 70.00004),
control1: CGPoint(x: 107.61421, y: 120.000015),
control2: CGPoint(x: 129.99998, y: 97.61427))
path1.addLine(to: CGPoint(x: 80.0, y: 70.00004))
path1.closeSubpath()
ctx.addPath(path1)
ctx.fillPath(using: .evenOdd)
ctx.setLineCap(.butt)
ctx.setLineJoin(.miter)
ctx.setLineWidth(2.0)
ctx.setMiterLimit(4.0)
let color3 = CGColor(colorSpace: rgb, components: [0.0, 0.0, 0.0, 1.0])!
ctx.setStrokeColor(color3)
ctx.addPath(path1)
ctx.strokePath()
}
}
*Note that all licence references and agreements mentioned in the SwiftDraw README section above
are relevant to that project's source code only.