Skip to content
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

Merged
merged 16 commits into from
Jun 10, 2024
Merged

Refactor list item view #40

merged 16 commits into from
Jun 10, 2024

Conversation

gemdev111
Copy link
Contributor

#39

…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
@gemdev111 gemdev111 linked an issue Jun 6, 2024 that may be closed by this pull request
@gemdev111 gemdev111 requested a review from gemcoder21 June 6, 2024 10:29
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)
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Long Text States

let tagTextStyleBlue = TextStyle(font: Font.system(.footnote), color: .blue, background: .blue.opacity(0.2))

return List {
// Basic States
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 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
@gemdev111 gemdev111 requested a review from gemcoder21 June 7, 2024 10:20
@gemdev111 gemdev111 merged commit c3480e0 into main Jun 10, 2024
1 check passed
@gemdev111 gemdev111 deleted the refactor-listItemView branch June 10, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor ListItemView
2 participants