Skip to content

Instantly share code, notes, and snippets.

View andrehsouza's full-sized avatar

André Souza andrehsouza

View GitHub Profile
// UICollectionViewCell
isAccessibilityElement = true
accessibilityTraits = .button
accessibilityLabel = "\(job.title). \(L10n.jobLocation): \(job.location)"
accessibilityHint = L10n.jobCellHint
// Request
UIAccessibility.post(notification: .layoutChanged,
argument: "Loading job list.")
spinner.isHidden = false
service.getJobList() { [weak self] result in
self?.spinner.isHidden = true
switch result {
case .success(let jobs):
self?.jobList = jobs
self?.tableView.reloadData()