orbit-swiftui icon indicating copy to clipboard operation
orbit-swiftui copied to clipboard

Create data types for components

Open PavelHolec opened this issue 2 years ago • 0 comments

When components are used in hierarchical collections, it is often useful to have a data type to carry relevant information.

The future hierarchical Itinerary component will require such types anyway, so in order to be consistent, each component will get its data type.

This type will have matching signature as the init and will also be used for an extension init to be able to create the component out of it.

Open Questions

  • Naming: BadgeData vs Badge.Data (not possible for components with generic content)

PavelHolec avatar Oct 12 '22 11:10 PavelHolec