repeat each for TupleView #2

Open
opened 2025-10-14 15:43:09 -06:00 by navan · 0 comments
Owner

Originally created by @CleverLemming1337 on 9/14/2025

Hi!

I just found this library and while browsing the documentation I saw that TupleView has a separate implementation for each number of children up to 10.

Since Swift 5.9, there's the Type Parameter Packs feature that supports implementation for any number of children.

I don't exactly know how TupleView is implemented but maybe it would be useful to use Type Parameter Packs for TupleView? (Then the minimum Swift version would be 5.9 instead of 5.6)

Another question: What happens if there are more than 10 children of a view?

*Originally created by @CleverLemming1337 on 9/14/2025* Hi! I just found this library and while browsing the documentation I saw that `TupleView` has a separate implementation for each number of children up to 10. Since Swift 5.9, there's the Type Parameter Packs feature that supports implementation for any number of children. I don't exactly know how `TupleView` is implemented but maybe it would be useful to use Type Parameter Packs for `TupleView`? (Then the minimum Swift version would be 5.9 instead of 5.6) Another question: What happens if there are more than 10 children of a view?
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/SwiftTUI#2
No description provided.