Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

DrawBubbleShapesView

DrawBubbleShapesView — Drawing message bubbles with tails (like iMessage) and creating custom shapes with ease in your iOS app using Swift.


✨ Features

  • 📦 Simple and lightweight custom UIView subclass
  • 💬 Supports message-style chat bubbles with tails
  • 🖌️ Easily draw your own shapes programmatically
  • 🎯 Built with Swift for iOS

📦 Installation

CocoaPods

To install it using CocoaPods, add the following line to your Podfile:

pod 'Draw-Custom-Shape-View'

Then run:

pod install

🚀 Usage

Import the module:

import Draw_Custom_Shape_View

Example: Create a chat bubble

let bubbleView = ChatBubbleView(frame: CGRect(x: 50, y: 100, width: 200, height: 80))
bubbleView.tailPosition = .left // or .right
bubbleView.fillColor = .systemBlue
self.view.addSubview(bubbleView)

💡 You can also subclass and create your own shapes by overriding the draw method.


✅ Requirements

  • iOS 11.0+
  • Swift 5.0+

👨‍💻 Maintained By

Paresh Mangukiya
📧 Email: pkmangukiya@gmail.com
🐙 GitHub: github.com/pkmangukiya
🔗 LinkedIn: pareshmangukiya


🤝 Contributions

Pull requests are welcome!
Feel free to open issues for suggestions, improvements, or bug reports.


About

Draw message bubbles and custom shapes with ease in your iOS app using Swift.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages