oseparovic / MessageComposerView

Custom UIView that sticks to the keyboard like in iMessage
MIT License
100 stars 27 forks source link

How could we enable translucency? #11

Closed joeharby closed 9 years ago

joeharby commented 9 years ago

Is there an easy was to add translucency on the comments bar?

oseparovic commented 9 years ago

Currently the background color of the composer is set in the setup function of the lib via:

self.backgroundColor = [UIColor lightGrayColor];

If you want to override this you should be able to set the background to a UIColor with alpha < 1 at some point after you alloc and init in your code to make it translucent E.g.

self.messageComposerView = [[MessageComposerView alloc] init];
self.messageComposerView.delegate = self;
self.messageComposerView.backgroundColor = [UIColor colorWithWhite:1.0 alpha:0.5];
joeharby commented 9 years ago

Thanks!