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

[Bug]: <.flash /> without title crashs app at runtime #1527

Open
nighthawk opened this issue Feb 10, 2025 · 0 comments
Open

[Bug]: <.flash /> without title crashs app at runtime #1527

nighthawk opened this issue Feb 10, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nighthawk
Copy link
Contributor

What happened?

If your .swiftui.neex file has this snippet below, it'll crash the app at runtime due to a missing title:

<.flash kind={:info} flash={@flash} />

title is optional according to core_components.swiftui.ex (which is also consistent with the same default component from core_components.ex):

attr :title, :string, default: nil

The crash is in AttributeReference.resolve which has try! even though an error is raised in this case.

Image

Library Version

0.4.0-rc.0

Xcode Version

Version 16.2 (16C5032a)

Swift Version

swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)

On which device or simulator are you running into the problem?

iPad

Target Device Operating System Version

iOS 18.3

Relevant log output

@nighthawk nighthawk added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants