How to make dynamic detail views in xcode

144 Views Asked by At

I have a table view with a bunch of words of varying parts of speech. Currently I have a detail view that only has the correct layout for nouns. As I see it there are two options. 1: Have a single dynamic detail view that changes based on the part of speech or 2: have multiple detail views that each correspond to a part of speech. When a word is selected it brings up the detail view with the correct layout for that part of speech.

I'm using swift

This is the detail view I currently have. It is only correct for nouns. For a verb I could reuse the TitleLabel and the SubtitleLabel but the declension and gender labels wouldn't apply. There are also other labels such as conjugation and transitivity that only apply to verbs and not to nouns. The language I'm using is latin if anyone cares

0

There are 0 best solutions below