-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature/add tiscrollview #285
base: master
Are you sure you want to change the base?
Conversation
public var text: String = "" { | ||
didSet { | ||
textLabel.text = text | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ещё attributedText надо добавить
open class TIScrollLabel: BaseInitializableView { | ||
|
||
private let labeledScrollView = LabeledScrollView() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а зачем нам оборачивать LabeledScrollView в ещё одну view?
TIUIElements/Sources/Views/TIScrollLabel/TIScrollLabel/LabeledScrollView.swift
Outdated
Show resolved
Hide resolved
label.text = // установка текста | ||
label.font = // установка шрифта | ||
label.textColor = // установка цвета текста | ||
label.textAligment = // установка расположения текста |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
textAlig_n_ment
Позволяет скролить текст, если его размер больше чем размер вью. Также если размер текста будет меньше, чем размер вью, то текст будет отображаться в центре.
Зачем это надо и почему не использовать textview?
textview не умеет выравнивать по вертикали
tiscrolllabel.mov