Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore support for LazyRow on iOS #1556

Open
github-actions bot opened this issue Oct 4, 2023 · 0 comments
Open

Restore support for LazyRow on iOS #1556

github-actions bot opened this issue Oct 4, 2023 · 0 comments
Labels
redwood/lazylayout Relating to `LazyColumn` or `LazyRow` todo toolkit/uikit

Comments

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

https://api.github.com/cashapp/redwood/blob/6d9d398b39360d5d8da50f41106a88785cd08dc8/redwood-lazylayout-uiview/src/commonMain/kotlin/app/cash/redwood/lazylayout/uiview/UIViewLazyList.kt#L167


      }
    }

  init {
    tableView.apply {
      dataSource = [email protected]
      delegate = tableViewDelegate
      prefetchingEnabled = true
      rowHeight = UITableViewAutomaticDimension
      separatorStyle = UITableViewCellSeparatorStyleNone

      registerClass(
        cellClass = LazyListContainerCell(UITableViewCellStyle.UITableViewCellStyleDefault, reuseIdentifier)
          .initWithFrame(CGRectZero.readValue()).classForCoder() as ObjCClass?,
        forCellReuseIdentifier = reuseIdentifier,
      )
    }
  }

  final override fun onViewportChanged(onViewportChanged: (Int, Int) -> Unit) {
    this.onViewportChanged = onViewportChanged
  }

  override fun isVertical(isVertical: Boolean) {
    // TODO: support horizontal LazyLists.
  }

  // TODO Dynamically update width and height of UIViewLazyList when set

@github-actions github-actions bot added the todo label Oct 4, 2023
@swankjesse swankjesse changed the title support horizontal LazyLists. Restore support for LazyRow on iOS Oct 4, 2023
@swankjesse swankjesse added the redwood/lazylayout Relating to `LazyColumn` or `LazyRow` label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
redwood/lazylayout Relating to `LazyColumn` or `LazyRow` todo toolkit/uikit
Projects
None yet
Development

No branches or pull requests

2 participants