mirror of
https://github.com/rensbreur/SwiftTUI.git
synced 2026-04-03 00:18:31 -06:00
repeat each for TupleView #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CleverLemming1337 on 9/14/2025
Hi!
I just found this library and while browsing the documentation I saw that
TupleViewhas 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
TupleViewis implemented but maybe it would be useful to use Type Parameter Packs forTupleView? (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?