Skip to content

feat: Add parent activated modifier#60

Open
ajinumoto wants to merge 1 commit into
CSolanaM:developfrom
ajinumoto:develop
Open

feat: Add parent activated modifier#60
ajinumoto wants to merge 1 commit into
CSolanaM:developfrom
ajinumoto:develop

Conversation

@ajinumoto

Copy link
Copy Markdown

Goals ⚽

  • Add parent-level skeleton activation.
  • Allow child views to call .skeleton() without passing with.
  • Keep explicit child loading state as an override when .skeleton(with:) is provided.

Implementation Details 🚧

  • Added .skeletonActive(_:) as a parent view modifier using SwiftUI environment.
  • Updated .skeleton(with:) so with is optional and defaults to nil.
  • When with is nil, skeleton state is resolved from the parent environment.
  • When with is true or false, the child uses that explicit value instead of parent state.

Testing Details 🔍

  • Ran swift test --filter UnitTests successfully.

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.

1 participant