Skip to content

Add IfQueryable, for conditionally showing a view - #7

Merged
SwiftedMind merged 7 commits into
SwiftedMind:mainfrom
KaiTheRedNinja:main
Jan 15, 2024
Merged

SwiftedMind merged 7 commits into
SwiftedMind:mainfrom
KaiTheRedNinja:main

Conversation

@KaiTheRedNinja

Copy link
Copy Markdown
Contributor

IfQueryable conditionally shows a view for a query.

It was implemented to be similar to Queryable+overlay.

When no query is active, the IfQueryable is simply a ZStack<EmptyView()>.

@SwiftedMind SwiftedMind left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Hey @KaiTheRedNinja 👋

appreciate the contribution! I really like the idea :)
I have a few comments on the PR, to clean up the implementation a bit but other than that I'd be happy to include it in the package.

Let me know if something's not clear or if you have any questions.

Thanks a lot!

Comment thread Sources/Queryable/Handlers/Queryable+Conditional.swift Outdated
Comment thread Sources/Queryable/Handlers/Queryable+Conditional.swift Outdated
Comment thread Sources/Queryable/Handlers/Queryable+Conditional.swift
Comment thread Sources/Queryable/Handlers/Queryable+Conditional.swift Outdated

@SwiftedMind SwiftedMind left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

One more change, then it should be good to do 👍

Comment thread Sources/Queryable/Handlers/Queryable+Conditional.swift

@SwiftedMind SwiftedMind left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍 Thanks a lot for the contribution!
I will add a new release after I get off from work

@SwiftedMind
SwiftedMind merged commit 7c8f7fb into SwiftedMind:main Jan 15, 2024
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