Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Repository files navigation

You do not need to import this package directly. You can access LazyZStack through SwiftfulUI package.


LazyZStack is similar to adding several items into a ZStack and then adding logic to determine which item to render based on selection. This component manages the View's rendering lifecycle and ZIndex patterns so that SwiftUI Transitions always work as expected.

  • LazyZStack supports Bool, Int, or Identifiable selection.
  • Set allowSimultaneous to false to restrict the view to render only one item as a time.

LazyZStack is actually named AnyRecursiveView under the hood. AnyRecursiveView is a SwiftUI View that recursively renders views in a pattern similar to using a linked-list. Each layer of the view renders itself and/or an array of its children, which are also recursive views.

About

Recursive SwiftUI View

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.