iOS Code Snippet HUD Toast message multiple lines

I wanted multiple lines and found these posts
Then read these posts

And came up with this to give multiple lines in a toast message

hd.ToastMessageShow($"Have a nice day${CRLF} :) Line 2"$, True)

Sub Hud_AllowMultipleLines
    Dim no1 As NativeObject = Main.App.KeyController
    no1 = no1.GetField("view")
    Dim no2 As NativeObject
    Dim Hud As NativeObject = no2.Initialize("MMBProgressHUD").RunMethod("HUDForView:", Array(no1))
    If     Hud.IsInitialized Then
        Dim l As NativeObject = Hud.GetField("label")
        If  l.IsInitialized Then
            l.SetField("numberOfLines", 0)
        End If
    End If
End Sub

Seems to work fine.
Last edited: