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

Long Subtitle text doesn't correctly wrap in DisplayMode "hub" or "banner" #61

Open
octopussy1 opened this issue Feb 15, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@octopussy1
Copy link

Describe the bug
When using a long Subtitle and in DisplayMode "hub" or "banner" the subtitle doesn't wrap correctly and cuts off on both sides left and right

To Reproduce
Steps to reproduce the behavior:

The following code will demonstrate the issue

AlertToast(displayMode: .alert,
		type: .regular,
		title: "Sample Message",
		subTitle: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec gravida eleifend scelerisque. Donec ornare malesuada orci, nec tempus massa lacinia non.\n\nMaecenas sit amet convallis orci. Aenean malesuada lacus sed odio pulvinar elementum non a tellus. Etiam cursus erat sed fermentum lobortis. Phasellus feugiat euismod orci. Donec ultrices fringilla fringilla.")

Expected behavior
The text should be displayed the same way it does with DisplayMode "alert".

Screenshots

image
This is the toast using "hud"

image
This is the toast using "alert"

Smartphon:

  • Device: iPhone 14
  • OS: 16.3
@octopussy1 octopussy1 added the bug Something isn't working label Feb 15, 2023
@elai950
Copy link
Owner

elai950 commented Feb 15, 2023

Which version of AlertToast did you installed?

@octopussy1
Copy link
Author

octopussy1 commented Feb 15, 2023 via email

@tanmays
Copy link

tanmays commented Mar 3, 2023

@elai950 I ran into this and the v1.3.9 release does not contain the commit 638f38f.

@bradmartin
Copy link

Yea still the issue, modifying the file directly with the commit ^ in your project Pods is an option assuming you commit pods to your repo.

@lukepistrol
Copy link

Is this still happening in iOS 16.4? We currently have a report referencing this exact issue running iOS 16.3.1 but we cannot reproduce the issue on our devices running 16.4 or the simulator running 16.2 or 16.4.

@guyaumetremblay
Copy link

@elai950 Could you have a look why the 1.3.9 doesn't contain the commit please?

@arslankaleem7229
Copy link

Its strange that issue is still not resolved

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

7 participants