-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filling up the custom button background #61
Comments
You can use the let item = KCFloatingActionButtonItem()
item.buttonColor = UIColor.blueColor()
item.title = "Custom item"
fab.addItem(item: item) |
ok @kciter the problem is if I change the background color, the icon itself is still small unlike the icons that come with the KFAB example project. Would this have to do with the icon not being in an asset set? I noticed the default ones are in a set of three inside an asset set called icon (1, @2x, and @3x). |
@SirSamShaw |
Hello, @SirSamShaw |
ah ok Thank you!, do I need to place them in an asset set or can I just On Tue, Aug 16, 2016 at 9:38 PM, Lee Sun-Hyoup notifications@github.com
|
@SamuelShaw var fab = KCFloatingActionButton()
fab.itemButtonColor = UIColor.blueColor() // Choose your color.
fab.addItem("title", icon: UIImage(named: "icName"))
// ... |
ok, thank you! |
Hi @kciter , @SirSamShaw how can I change the main fab icon image ? |
I am wanting to change the floating buttons to a custom 1 with a blue background. the image is round and is 1024 x 1024. When I place it into the code and run, the image is small and not filling up the default white background. How could I over come this?
The text was updated successfully, but these errors were encountered: