Skip to content

Conversation

@FSaurenbach
Copy link
Member

Similar to

fun <T : View> T.addTo(parent: Container): T {
parent += this
return this
}

Not sure if this belongs here, I find it very useful tho.

@augmentcode
Copy link

augmentcode bot commented Jan 16, 2026

🤖 Augment PR Summary

Summary: Adds a new View.addTo(MutableList) extension to allow fluent insertion of a view into an arbitrary mutable list.

Why: Mirrors the existing Container.addTo convenience pattern, making it easier to build/collect views without extra boilerplate.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

@FSaurenbach
Copy link
Member Author

@jobe-m can we add this?

@jobe-m jobe-m merged commit ccf3687 into korlibs:main Jan 20, 2026
6 checks passed
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.

2 participants