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

Feature [RM66] Cell Short Description #68

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

swg99
Copy link
Contributor

@swg99 swg99 commented Aug 6, 2021

https://github.com/orgs/novoda/projects/1#card-66064062
Short descriptions are shown in cells instead of full descriptions if they are available.

Short descriptions are shown in cells instead of full descriptions if they are available.
}
.padding()
}
.buttonStyle(PlainButtonStyle())
}

func description(for character: Character) -> String {
if let c = character as? ShortCharacterDescription {

Choose a reason for hiding this comment

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

Try not to use one letter variables, Usually there will be setting in swift lint that will prevent you from that. you can use char or. event `character.

}
.padding()
}
.buttonStyle(PlainButtonStyle())
}

func description(for character: Character) -> String {

Choose a reason for hiding this comment

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

This logic should not. be in view layer. This should reside in ViewModel

@swg99 swg99 merged commit dabd26b into scottie-main Aug 9, 2021
@swg99 swg99 deleted the feature/rm-66-cell-short-description branch August 9, 2021 13:16
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.

If short description is available I want user to see it instead of description.
2 participants