-
Notifications
You must be signed in to change notification settings - Fork 5
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
Refactor list item view #40
Conversation
moved ListItemVIew to Lists folder
…1 dependecy. Also used in TransactionsScene separetly
TextStyle moved from Components package to Style package, added necessary Style package imports to Gem ListItemView minor change Done #39
let longTitleExtra = "Long Title Extra Long Title Extra Long Title Extra Long Title Extra" | ||
let longSubtitleExtra = "Long Subtitle Extra Long Subtitle Extra Long Subtitle Extra" | ||
|
||
let defaultTextStyle = TextStyle(font: Font.system(.body), color: .primary) |
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.
maybe add static let defaultTextStyle
for ListItemView
?
then in the init function you can pass Self.defaultTextStyle
as default value
) | ||
} | ||
|
||
// Long Text States |
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.
// Long Text States |
let tagTextStyleBlue = TextStyle(font: Font.system(.footnote), color: .blue, background: .blue.opacity(0.2)) | ||
|
||
return List { | ||
// Basic States |
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.
// Basic States |
no need for such comments, it's self explanatory in the section
Conflicts: Packages/Components/Sources/Lists/ListItemView.swift
ListItemView decorated with TextValueView instead of combo text & stle Added defaults values for TextStyle, Added TextStyle.Preview - to have ability see colors in packages previews
refactor->rename TextValueView to TextValue Crated Types folder, moved Value Types(not views) to Types
Added necessary imports Style, removed SystemImage.infoCircle. Since it's repeated image and we don't need it
Conflicts: Gem/Transfer/ViewsModels/ConfirmTransferViewModel.swift
#39