Comments (9)
Hi @kciter , @SirSamShaw how can I change the main fab icon image ?
from floaty.
ok, thank you!
from floaty.
You can use the KCFloatingActionButtonItem.buttonColor
.
Below is simple example.
let item = KCFloatingActionButtonItem()
item.buttonColor = UIColor.blueColor()
item.title = "Custom item"
fab.addItem(item: item)
from floaty.
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).
from floaty.
@SirSamShaw
Can you give me your icons? I need re-produce.
from floaty.
from floaty.
Hello, @SirSamShaw
I'm sorry that late reply because the time difference.
KCFABItem's icon image size is 25x25 point. So, remove the your icons background color and shadow. And you should resize image to 25x25 point.
from floaty.
ah ok Thank you!, do I need to place them in an asset set or can I just
place them in by name directly in code after I resize them??
On Tue, Aug 16, 2016 at 9:38 PM, Lee Sun-Hyoup [email protected]
wrote:
KCFABItem's icon image size is 25x25 point. So, remove the your icons
background color and shadow. And you should resize image to 25x25 point.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#61 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOLMafjs6qwprTjyER78LoOvwiEtdCOJks5qgmYHgaJpZM4JiTlq
.
from floaty.
@SamuelShaw
KCFAB's item is already applied shadow and background color.
You can make using the design tool a transparent background and resize them.
Then, you place them in an asset set and add item in code.
var fab = KCFloatingActionButton()
fab.itemButtonColor = UIColor.blueColor() // Choose your color.
fab.addItem("title", icon: UIImage(named: "icName"))
// ...
from floaty.
Related Issues (20)
- How to make fab button to hide only on tapping cross button item and not on background semi transparent view
- Customize Image
- How to change Floaty Position ?
- Floaty hit are is way too big
- Cant add Floaty button to Window level HOT 1
- Add background view for item label
- Floaty is preventing from changing device orientation
- Overlay & Width & Height Label HOT 1
- preferredStatusBarStyle isn't called due to Floaty.global.button
- Can I handle just one single action?
- Floaty padding Y is not working when set rtlMode property is true!
- How to cover Overlay on TabBar & NavigationBar
- How to add button Floaty type in storyboard? HOT 1
- Floaty items aren't clickable when I turn voiceover on
- Floaty only respond to touch for the first time on simulator when built by Xcode 14. HOT 3
- Pod is not working in m1 chip system
- Isn't the [weak self] needed in addItem() ?
- Item icons are not in center
- Problem with tabbar and overlay
- Unable to reload data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from floaty.