An open API service indexing awesome lists of open source software.

https://github.com/simformsolutionspvtltd/ssverticalpanoramaimage

Capture stunning vertical panorama images with ease and preview them instantly on the built-in screen.
https://github.com/simformsolutionspvtltd/ssverticalpanoramaimage

camera ios ios-swift panorama panorama-image photography swift swift5 swiftui

Last synced: 9 months ago
JSON representation

Capture stunning vertical panorama images with ease and preview them instantly on the built-in screen.

Awesome Lists containing this project

README

          

![Banner](assets/banner.png)
# SSVerticalPanoramaImage
## Capture stunning vertical panorama images with ease and preview them instantly on the built-in screen.
[![CI Status](https://img.shields.io/github/v/release/SimformSolutionsPvtLtd/SSVerticalPanoramaImage?style=flat)](https://travis-ci.org/SimformSolutionsPvtLtd/SSVerticalPanoramaImage)
[![Version](https://img.shields.io/cocoapods/v/SSVerticalPanoramaImage.svg?style=flat)](https://cocoapods.org/pods/SSVerticalPanoramaImage)
[![License](https://img.shields.io/cocoapods/l/SSVerticalPanoramaImage.svg?style=flat)](https://cocoapods.org/pods/SSVerticalPanoramaImage)
[![Platform](https://img.shields.io/cocoapods/p/SSVerticalPanoramaImage.svg?style=flat)](https://cocoapods.org/pods/SSVerticalPanoramaImage)

SSVerticalPanoramaImage provides a feature to capture a vertical panorama image and also provides an option to preview it on the built-in screen.

# Features

- Capture vertical panorama image
- Swipe the direction of capture from top to bottom and bottom to top
- Inbuilt flash and zoom functionality

# 🎬 Preview
| Up >> Down | Down >> Up | Normal |
|--|--|--|
| ![](assets/UpDown.gif) | ![](assets/DownUp.gif) | ![](assets/Normal.gif)

# Installation

### CocoaPods

[CocoaPods][cocoapods-link] is a dependency manager for Cocoa projects. You can install it with the following command:

```bash
$ gem install cocoapods
```

To integrate SSVerticalPanoramaImage into your Xcode project using CocoaPods, specify it in your `Podfile`:

```ruby
platform :ios, '15.0'
use_frameworks!

target '' do
pod 'SSVerticalPanoramaImage'
end
```

Then, run the following command:

```bash
$ pod install
```

# How to use:

1. Create an instance of SSVerticalPanorama and call `openSSVerticalPanoramaCam`.
```swift
var verticalPano: SSVerticalPanorama?
```

```swift
override func viewDidLoad() {
verticalPano = SSVerticalPanorama()
verticalPano?.delegate = self
verticalPano?.showPreviewScreen = true
}
```
```swift
@IBAction func onClickOfOpenCam(_ sender: UIButton) {
guard let navController = navigationController, let verticalPano else { return }
verticalPano.openSSVerticalPanoramaCam(navController: navController)
}
```
2. Confirm the `SSVerticalPanoDelegate` delegate to receive the captured image.
```swift
//MARK: - SSVerticalPanoDelegate
extension ViewController: SSVerticalPanoDelegate {
func onImageCaptured(image: UIImage) {
// Use image
}
}
```

## Customization
* You can customize UI icon using below properties in `viewDidLoad`.
```swift
verticalPano.arrowImage = UIImage(named: "YourImage")
verticalPano.closeImage = UIImage(named: "YourImage")
verticalPano.flashImage = UIImage(named: "YourImage")
verticalPano.zoomInImage = UIImage(named: "YourImage")
verticalPano.zoomOutImage = UIImage(named: "YourImage")
verticalPano.startCameraImage = UIImage(named: "YourImage")
verticalPano.stopCameraImage = UIImage(named: "YourImage")
```

# How to set in-built preview scereen :
* Set `showPreviewScreen` to `true` or `false` to enable or disable in-built preview screen.
```swift
verticalPano.showPreviewScreen = true
```

## Find this library useful? ❤️
Support it by joining __[stargazers]__ for this repository.⭐

## 🤝 How to Contribute

Whether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! 💪
Check out our __[Contributing Guide]__ for ideas on contributing.

# Check our other Libraries:
* Also, Check our other libraries - [Awesome-Mobile-Libraries][Awesome-Mobile-Libraries]

## Bugs and Feedback

For bugs, feature requests, and discussion please use __[GitHub Issues]__.

## License

Distributed under the MIT license. See [LICENSE][license-url] for more information.

[//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax)

[git-repo-url]:
[stargazers]:
[Contributing Guide]:
[GitHub Issues]:
[swift-url]:
[cocoapods-link]:
[license-image]:
[license-url]:
[Awesome-Mobile-Libraries]: