skip to Main Content

I use a third-party website to get the public ipv6. When I use VoiceOver to read the IPV6 address, it omits the colon in the address. But it reads the dot in the IPV4 address. Is there a way to read the colon in the IPV6 address?

2

Answers


  1. Change your verbosity setting.

    Settings > Accessibility > VoiceOver > Verbosity > Punctuation

    Set it to "All".

    enter image description here

    If you look at "All", you’ll see the colon listed (about halfway down the list).

    The default is "Some", which does not include the colon.

    Login or Signup to reply.
  2. Is there a way to read the colon in the IPV6 address?

    The solution suggested by @Slugolicious is perfectly correct 👏 but, as there aren’t any notifications to be informed of this setting value (see the Recap section in the link 😉), you should imagine the user has already made this modification on his own for an appropriate reading out by VoiceOver.

    To reach this goal through programming in Swift (iOS), I recommend to use the following attributes:

    A basic example with two labels highlights these notions through the following code: 🤓

      class ViewController: UIViewController {
    
        @IBOutlet weak var ipv4: UILabel!
        @IBOutlet weak var ipv6: UILabel!
    
        override func viewDidLoad() {
            super.viewDidLoad()
        
            let myTxtIpv4 = "177.255.255.255"
            let strV4 = NSAttributedString(string: myTxtIpv4,
                                           attributes: [.accessibilitySpeechPunctuation: true ])
            ipv4.accessibilityAttributedLabel = strV4
        
            let myTxtIpv6 = "2001:0db8:85a3:8a2e:0000:7334"
            let strV6 = NSAttributedString(string: myTxtIpv6,
                                           attributes: [.accessibilitySpeechSpellOut: true ])
            ipv6.accessibilityAttributedLabel = strV6
        }
    
    
      }
    

    Following this rationale, VoiceOver will read colons of your IPV6 addresses on iPhone. 🎉🥳🎊

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search