I just updated to xCode 10 and instantly got this error "Binary operator '|=' cannot be applied to two 'UIAccessibilityTraits' operands" The error appears in the 4th line of code:
func setAccessibilityView() {
self.addSubview(accessibilityView)
accessibilityView.isAccessibilityElement = true
accessibilityView.accessibilityTraits |= UIAccessibilityTraits.button
}