Comments (2)
Hi @Binusz ,
Yes you can custom the button using a xib file:
let xibPlaceholder = Placeholder(cellIdentifier: "CustomPlaceholderCell", key: PlaceholderKey.custom(key: "XIB"))
placeholdersProvider.add(placeholders: xibPlaceholder)
If you would like to change only text and background, you can do like that:
var starwarsStyle = PlaceholderStyle()
starwarsStyle.actionBackgroundColor = .clear
starwarsStyle.actionTitleColor = .white
var starwarsData = PlaceholderData()
starwarsData.action = NSLocalizedString("OK!", comment: "")
let placeholder = Placeholder(data: starwarsData, style: starwarsStyle, key: PlaceholderKey.custom(key: "starWars"))
from hgplaceholders.
Actually, I just want to use my own custom button on your default placeholder without xib file. But you're right. the best way is using a xib file.
from hgplaceholders.
Related Issues (20)
- Error EXC_BAD_ACCESS (code=2, address=...) HOT 2
- Cell are not removing after view controllers deallocation. HOT 5
- actionButtonTappedFor is now working i need help, please! HOT 1
- [QUESTION] Custom placeholder without XIBs HOT 1
- HGPlaceholder + Custom collection view layout == ?
- Swift 4.2 support HOT 2
- Crashing on changing orientation while UISearchController is active HOT 8
- How do I set the dynamic title and subtitle which is received from server api. HOT 1
- Update podspec version HOT 2
- Your placeholdersProvider is not configured correctly, no placeholder with key: emptyPlaceHolder found! HOT 3
- Individually call button action (actionButtonTappedFor)
- Doesn't work at all (StripNIB issue)
- 'Placeholder' is ambiguous for type lookup in this context HOT 4
- Placeholder is ambiguous for type lookup in this context
- Custom placeholder - how to add button click support? HOT 1
- Editing mode HOT 1
- library not work with xcode 12 HOT 9
- How can I use this? HOT 2
- Upload Privacy Manifest
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 hgplaceholders.