This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Text-Processing API Url | |
const API_URL = 'https://japerk-text-processing.p.rapidapi.com/sentiment/'; | |
// RapidAPI request headers | |
const REQUEST_HEADERS = { | |
'X-RapidAPI-Host': 'japerk-text-processing.p.rapidapi.com', | |
'X-RapidAPI-Key': '768d224b32mshbe5f76705cbfd9bp154850jsnba7a2201e140', | |
'Content-Type': 'application/x-www-form-urlencoded' | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
font-family: "Arial", Arial, sans-serif; | |
font-weight: 400; | |
padding: 0;ь | |
margin: 0; | |
border: 0; | |
} | |
body { | |
padding: 20px; | |
display: flex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Text Processing</title> | |
<!-- Import our css styles --> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
textFieldEmail.accessibilityTraits = .button | |
textFieldEmail.accessibilityHint = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if !UIAccessibility.isVoiceOverRunning { | |
// Just do what you need to do | |
} else { | |
UIAccessibility.post(notification: .announcement, argument: "Thank you. Your request has been sent.") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if !UIAccessibility.isVoiceOverRunning { | |
// Just do what you need to do | |
} else { | |
UIAccessibility.post(notification: .announcement, argument: "Thank you. Your request has been sent.") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@objc func announcementFinished() { | |
// Do what you need to do after the announcement | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NotificationCenter.default.addObserver(self, selector: #selector(self.announcementFinished), name: UIAccessibility.announcementDidFinishNotification, object: nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cell.isAccessibilityElement = true (default is false) | |
cell.accessibilityLabel = "Posted by \(nameLabel.text), they say: \(commentLabel.text)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Group { | |
Text(...) | |
... | |
} |
NewerOlder