Skip to content

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

Notifications You must be signed in to change notification settings

AvtMob/HBStickerViewOrResizableView

Repository files navigation

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]

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages