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

System image not being displayed when AlertToast added to a package. #77

Open
antokne opened this issue Jun 14, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@antokne
Copy link

antokne commented Jun 14, 2023

Describe the bug
When using AlertToast in a package, displaying a toast of displayMode type .alert neither a systemImage or Image are displayed.

To Reproduce
Steps to reproduce the behavior:

  1. Add AlertToast into a package. and create a SwiftUI view
  2. Set up an alert eg:
.toast(isPresenting: $showToast) {
    AlertToast(displayMode: .alert, type: .systemImage("pause.circle", .red), style: .style(backgroundColor: .black))
}
  1. Verify that the system image does not display in preview.
  2. Change to .hud type. image does display.

Expected behavior
System image should be visible.

Screenshots

Using .alert
image

Using .hud

image

Desktop (please complete the following information):

  • OS: iOS 16.4
  • Xcode Version 14.3 (14E222b)

Verified this works when displaying in a SwiftUI view in app not in a package.

@antokne antokne added the bug Something isn't working label Jun 14, 2023
@antokne antokne changed the title System image not being displayed when added to a package. System image not being displayed when AlertToast added to a package. Jun 14, 2023
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

1 participant