Swiftpack.co - dungntm58/RCStickerView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by dungntm58.
dungntm58/RCStickerView 0.4.5
Add a label, image, another custom view as a sticker view.
⭐️ 10
🕓 1 week ago
iOS
.package(url: "https://github.com/dungntm58/RCStickerView.git", from: "0.4.5")

RCStickerView

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 10.
  • Swift 4.0.
  • iOS 9.0 or higher.

Installation

RCStickerView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'RCStickerView'

Then, run the following command:

$ pod install

Usage

See the Example project for more details.

override func viewDidLoad() {
  super.viewDidLoad()
  
  let testView = UIView(frame: CGRect(x: 0, y: 0, width: 150, height: 100))
  testView.backgroundColor = .red
  
  let stickerView = RCStickerView(contentView: testView)
  stickerView.center = self.view.center
  stickerView.delegate = self
  stickerView.outlineBorderColor = .blue
  stickerView.set(image: UIImage(named: "Close"), for: .close)
  stickerView.set(image: UIImage(named: "Rotate"), for: .rotate)
  stickerView.set(image: UIImage(named: "Flip"), for: .flipX)
  stickerView.isEnableFlipY = false
  stickerView.handlerSize = 40
  self.view.addSubview(stickerView)
}

Inspiration

RCStickerView is heavily inspired by CHTStickerView.

Author

RobertNguyen, minhdung.uet.work@gmail.com

License

RCStickerView is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 10
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

3 years ago

Fix several UI bugs:

  • Allow to flip content view completely in both horizontal and vertical directions

Actually, I have pushed version 0.4.1 to 0.4.4 before. However, they are all unstable versions because I was working too carelessly. Therefore I decided to delete them from the release tree.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics