Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.6 KB

README.md

File metadata and controls

61 lines (42 loc) · 1.6 KB

HBStickerViewOrResizableView

Use HBStickerView for photo editing and sticker decorations in applications of ios swift

You can watch a demo video here

Project preview

How to Use

First case

Step 1: Add a view to your storyboard.

Step 2: Set the custom class of the view to HBStickerView.

Step 3: Build and run the project.

Second case

  let stickerview = HBStickerView(frame: CGRect(x: 0, y: 0, width: 200, height: 200))
  
  stickerview.stickIcon = UIImage(named: "main")
  
  self.view.addSubview(stickerview)

Controls

Call to showControls() function for show controls like cross, rotate and resize.

stickerview.showControls()

Call to hideControls() function for hide controls like cross, rotate and resize.

stickerview.hideControls()

Check controls state with

          let stickerview = HBStickerView(frame: CGRect(x: 0, y: 0, width: 200, height: 200))
      stickerview.isControlsHidden

How to remove

    private func removeAllStickers(){
        self.view.subviews.forEach { view in
            if view is HBStickerView{
                view.removeFromSuperview()
            }
        }
    }

If you appreciate my work, consider buying me a cup of ☕️ to keep me recharged 🤘🏼

[PayPal]