LiquidFloatingActionButton icon indicating copy to clipboard operation
LiquidFloatingActionButton copied to clipboard

LiquidFloatingCell does not show the image

Open dubyaman opened this issue 9 years ago • 2 comments

We tried below code to add LiquidFloatingCell in cellForIndex(), but the cells are showing white circle in the center, not the actual image (screengrab attached).

LiquidFloatingCell *lfcell = [[LiquidFloatingCell alloc] initWithIcon:[UIImage imageNamed:@"australia"]];

screen shot 2015-12-20 at 4 14 36 am

dubyaman avatar Dec 19 '15 22:12 dubyaman

Image we are trying is the one below, it's a PNG file.

australia

dubyaman avatar Dec 19 '15 22:12 dubyaman

@dubyaman I believe this is to do with the way the image you set for buttons is processed. It seems similar to when you set a tab bar icon, the image is processed to provide a default grayscale for inactive and blue for active on the bar and can look very strange when you provide a strongly coloured image (such as the one you showed). If you choose an image with a white background and black colour/grayscale only, I believe you'll have more success.

dazzz1er avatar Apr 06 '16 10:04 dazzz1er