What's the difference between these two methods?
bofeizhu opened this issue · comments
Bofei Zhu commented
Checklist
- Reviewed the README and documents.
- Searched existing issues for ensure not duplicated.
What's the difference between these two methods?
/// Returns a new instance of `Content`.
///
/// - Returns: A new `Content` instance.
func renderContent() -> Content
/// Render properties into the content.
///
/// - Parameter:
/// - content: An instance of `Content` laid out on the element of list UI.
func render(in content: Content)
Ryo Aoyama commented
Sorry for my late reply.
As described in the API doc, it makes an instance by the renderContent()
method for the first time, and sets the appearance for the instance by the render(in content: Content)
method, such as color and text.