قالب وردپرس درنا توس
Home / IOS Development / swift – How do I customize the IOS local alert content availability text – UNNotificationContent

swift – How do I customize the IOS local alert content availability text – UNNotificationContent



I try to offer custom text for the voiceover user instead of reading the body. ] as "Apple makes two hundred three dollars and three pennies in green"

The following code did not work:

  let content = UNMutableNotificationContent ()
content.body = "Apple makes $ 203.03 ↑"
content.accessibilityLabel = "Apple makes two hundred and three dollars and three pennies in green"
content.accessibilityHint = "I'm a Hint"

Not even the hint.

Please let me know if this is possible?


Source link