-
Notifications
You must be signed in to change notification settings - Fork 187
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
Add PastelLabel #11
Comments
I was going to tackle this issue but I ended up rewriting much of the framework to add some extra abilities I was looking for, (motion color shifting). Feel free to take a look at my implementation, specifically in the ShiftUI file. When I have more time, I will explore a solution which does not wrap a UIlabel in a UIView, as show in the ShiftImageView class implementation vs ShiftMaskableLabel implementation: https://github.com/kgellci/Shift/blob/master/Shift/Classes/ShiftUI.swift |
@kgellci nice job. looks good to me i give star too :) // UIButton
@available(iOS 3.0, *)
open var titleLabel: UILabel? { get }
@available(iOS 3.0, *)
open var imageView: UIImageView? { get } so I wrapped the UILabel once and tried to use the functionality of the UILabel like an adapter in #16 public protocol PastelLabelable {
var text: String? { get set }
var font: UIFont? { get set }
var textAlignment: NSTextAlignment { get set }
var attributedText: NSAttributedString? { get set }
} If you find how to mask a UILabel without wrapping it, I would appreciate it if you would share it I reopen Issue Shift nice job :D thank you |
I will try and take a look this weekend. There is a way to do it w/o wrapping but need to take care of different cases like updating text, font, etc. |
PastelLabel
desc
The text was updated successfully, but these errors were encountered: