chrismiles / CMPopTipView

Custom UIView for iOS that pops up an animated "bubble" pointing at a button or other view. Useful for popup tips.
https://github.com/chrismiles/CMPopTipView
MIT License
2.73k stars 467 forks source link

Padding added to the content frame inside of the bubble #89

Closed bakkenlab closed 9 years ago

bakkenlab commented 9 years ago

When changing the cornerRadius of a bubble it will remove all padding in regards to the content frame. This makes it so there is minimal space to the text that's inside of the bubble.

sidePadding doesn't solve this issue as it is only affecting the padding between the window and the full bubble, not the side padding in the bubble itself.

In the code below I am adding the bubblePadding property to the bubble size to make the size of the bubble bigger. I then change the Rect of the content frame for the correct padding to be added.