Use HBStickerView for photo editing and sticker decorations in applications of ios swift
You can watch a demo video here
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.
let stickerview = HBStickerView(frame: CGRect(x: 0, y: 0, width: 200, height: 200))
stickerview.stickIcon = UIImage(named: "main")
self.view.addSubview(stickerview)
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()
let stickerview = HBStickerView(frame: CGRect(x: 0, y: 0, width: 200, height: 200))
stickerview.isControlsHidden
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]