All Questions
Tagged with ibdesignable uilabel
6 questions
0
votes
1
answer
356
views
Set different font as per title and subtitle in UIlabel IBDesignable
I had created the custom class for uilabel with below code:
@IBDesignable
public class CustomUILabel: UILabel {
public override func awakeFromNib() {
super.awakeFromNib()
...
3
votes
1
answer
371
views
UIAppearance overwrites custom textColor on UILabel
I setup UILabel appearance in my app delegate using:
UILabel.appearance().textColor = UIColor.white
I also have a custom UIView subclass that contains a UILabel along with some other elements (...
1
vote
1
answer
1k
views
iOS @IBDesignable autorefresh UILabel params as title, font, color
I'm working on a feature, that I can set my custom style on UILabel (by taping name of style). I have a simple code for this:
struct Style {
var fontName: String!
var fontSize: CGFloat!
...
0
votes
2
answers
1k
views
How to set padding for UILabel using @IBDesignable property?
This is how looks my subclass for UILabel:
@IBDesignable class AttributedLabel: UILabel {
@IBInspectable var padding: CGFloat = 0
override func drawTextInRect(rect: CGRect) {
super....
4
votes
1
answer
964
views
Swift - @IBDesignable - Rotation not shown inside Storyboard
Why is transform rotation not shown/previewed inside the storyboard? It works fine in the app . I have other attributes inside my @IBDesignable class that works fine.
How can I achieve this?
@...
2
votes
1
answer
896
views
Stretching and kerning type, not working in Storyboard with @IBDesignable
Here is a IBLabel which tracks / stretches the font.
It works perfectly in the build. But the change doesn't show live in Storyboard.
// UILabel, but you can set
// the tracking (that's the overall ...