I am showing toast message using MBProgressHUD but with toast message getting some view with it Below is code is using
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:window.contentView animated:YES];;
// Configure for text only and offset down
hud.mode = MBProgressHUDModeText;
hud.labelText = @"some message......";
hud.margin = 10.f;
hud.yOffset = 200.f;
hud.removeFromSuperViewOnHide = YES;
[hud hide:YES afterDelay:20];

For macOS Using
MBProgressHudyou can show like this