Skip to content

Instantly share code, notes, and snippets.

// 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'
};
* {
font-family: "Arial", Arial, sans-serif;
font-weight: 400;
padding: 0;ь
margin: 0;
border: 0;
}
body {
padding: 20px;
display: flex;
<!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>
textFieldEmail.accessibilityTraits = .button
textFieldEmail.accessibilityHint = ""
if !UIAccessibility.isVoiceOverRunning {
// Just do what you need to do
} else {
UIAccessibility.post(notification: .announcement, argument: "Thank you. Your request has been sent.")
}
if !UIAccessibility.isVoiceOverRunning {
// Just do what you need to do
} else {
UIAccessibility.post(notification: .announcement, argument: "Thank you. Your request has been sent.")
}
@objc func announcementFinished() {
// Do what you need to do after the announcement
}
NotificationCenter.default.addObserver(self, selector: #selector(self.announcementFinished), name: UIAccessibility.announcementDidFinishNotification, object: nil)
cell.isAccessibilityElement = true (default is false)
cell.accessibilityLabel = "Posted by \(nameLabel.text), they say: \(commentLabel.text)"
Group {
Text(...)
...
}