AlertToast icon indicating copy to clipboard operation
AlertToast copied to clipboard

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

Open octopussy1 opened this issue 2 years ago • 6 comments

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 avatar Feb 15 '23 10:02 octopussy1

Which version of AlertToast did you installed?

elai950 avatar Feb 15 '23 11:02 elai950

1.3.9

On 15. Feb 2023, at 12:31, Elai Zuberman @.***> wrote:

Which version of AlertToast did you installed?

— Reply to this email directly, view it on GitHub https://github.com/elai950/AlertToast/issues/61#issuecomment-1431223762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5PAFD4PNI3AIU4XIZRRNDWXS5BNANCNFSM6AAAAAAU4V5MFY. You are receiving this because you authored the thread.

octopussy1 avatar Feb 15 '23 11:02 octopussy1

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

tanmays avatar Mar 03 '23 15:03 tanmays

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.

bradmartin avatar Apr 04 '23 13:04 bradmartin

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.

lukepistrol avatar May 02 '23 10:05 lukepistrol

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

guyaumetremblay avatar Apr 09 '24 20:04 guyaumetremblay