CTPanoramaView alternatives and similar libraries
Based on the "Images" category.
Alternatively, view CTPanoramaView 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. -
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. -
Brightroom
📷 A composable image editor using Core Image and Metal. [Moved to: https://github.com/FluidGroup/Brightroom] -
GPUImage 3
GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal. -
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. -
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. -
Viewer
Image viewer (or Lightbox) with support for local and remote videos and images -
XAnimatedImage
XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage -
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. -
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. -
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. -
FacebookImagePicker
FacebookImagePicker is Facebook album photo picker written in Swift. -
DTPhotoViewerController
A fully customizable photo viewer ViewController to display single photo or collection of photos, inspired by Facebook photo viewer. -
ImageDetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api. -
SwiftColorArt
font schema generator according image colours. -
Harbeth
Metal API for GPU accelerated Image and Video and Camera filter framework. Support macOS & iOS. 🎨 图像、视频、相机滤镜框架 -
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 CTPanoramaView or a related project?
README
CTPanoramaView
CTPanoramaView is a high-performance library that uses SceneKit to display complete spherical or cylindrical panoramas with touch or motion based controls.
Requirements
- iOS 8.0+
- v1.0 requires Xcode 8.0 and Swift 3.0
- v1.1 requires XCode 9.0 and Swift 4.0
- v1.2 requires XCode 10.0 and Swift 4.2
- v1.3 requires XCode 10.0 and Swift 5.0
- v1.4 requires XCode 12.0 and Swift 5.0
CTPanoramaView can be used both from Objective-C and Swift code.
Installation
Using Carthage
To install CTPanoramaView using Carthage, add the folowing line into your Cartfile:
github "scihant/CTPanoramaView" ~> 1.3
Then run the carthage update
command to build the framework and drag the built CTPanoramaView.framework
into your XCode project.
Using CocoaPods
To install CTPanoramaView using CocoaPods, add the following line into your Podfile:
pod "CTPanoramaView", "~> 1.3"
Then run the pod install
command and use the created workspace to open your project from now on.
Manual Install
Just add the file CTPanoramaView.swift
(and CTPieSliceView.swift
if you want to use it as the compass view) to your project.
Running the Example project
The example project is located in the Example directory. The framework target is already added as a dependency to it therefore you can run it directly.
Usage
Create an instance of CTPanoramaView
either in code or using a Storyboard/Nib.
Then load a panoramic image and set it as the image of the CTPanoramaView instance:
// Create an instance of CTPanoramaView called "panoramaView" somewhere
// ...
let image = UIImage(named: "panoramicImage.png")
panaromaView.image = image
Configuration
Panorama Types
CTPanoramaView supports two types of panoramic images:
- Spherical panoramas (also called 360 photos)
- Cylindrical panoramas
All panoramas should be full. Partial panoramas (panoramas with a field of view of less than 360º) are not supported. For a spherical panorama, the image should use equirectangular projection. Cubic format is not supported.
CTPanoramaView will automatically determine whether the given image is a spherical or cylindircal panorama by looking at the aspect ratio of the image. If it is 2:1, then it will assume a spherical panorama. If you want to override this default value, change the value of the panoramaType
property after the image is set.
panaromaView.panoramaType = .spherical // or .cylindrical
Control Methods
CTPanoramaView allows the user to navigate the panorama two different ways. To change the control method, use the controlMethod
property.
panaromaView.controlMethod = .touch // Touch based control
panaromaView.controlMethod = .motion // Accelerometer & gyroscope based control
The default control method is touch based control. You can change the control method on the fly, while the panorama is being displayed on the screen. The visible section will get automatically reset during a control method change.
When using touch based control, you can set the starting angle of the viewer in radians using the startAngle
property of CTPanoramaView. This property is ignored in motion based control mode.
Orientation Support
All orientations are supported. Orientation changes are automatically handled. Therefore you don't have to worry about things getting messed up after an orientation change.
Compass
If you want to display a compass that shows the users current field of view, use the compass
property.
When you set this property to a custom UIView
subclass conforming to the CTPanoramaCompass
protocol, the view will automatically supplied with rotation and field of view angles whenever one of them changes.
// compassView is a custom view that conforms to the `CTPanoramaCompass` protocol.
panaromaView.compass = compassView
The protocol contains only a single method, which is updateUI(rotationAngle:fieldOfViewAngle:)
. Here, rotationAngle
is the amount of rotation around the vertical axis, and fieldOfViewAngle
is the horizontal FoV angle of the camera. Both values are in radians.
You can see an example implementation of a compass in the supplied CTPieSliceView
class. Add it into your view hierarchy somewhere above your CTPanoramaView
instance, and then set it as its compass. You'll see that it shows the current FoV accurately. Here's how CTPieSliceView
looks in its default configuration:
CTPieSliceView
has several customizable properties such as sliceColor
, outerRingColor
and bgColor
, all of which can also be modified from the interface builder thanks to its live-rendering support.
Overlay Views
There is also a convenience property named overlayView
that can be used to add a custom view that covers the entire panorama view on top. When using touch based controls, it's up to you to make sure that the overlay view does not "consume" the touches it receives so that the CTPanoramaView
instance can receive the touch events properly.
How to Contribute
Create a feature branch off the dev branch and then send me a pull request. I don't merge PR's directly to master so please don't make your changes there.