Created
June 1, 2018 14:14
-
-
Save evermeer/114f292622f813b5c50675c2b5624f07 to your computer and use it in GitHub Desktop.
Code block 3 for UITest medium blog
This file contains hidden or 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
infix operator ~~> | |
public extension UIView { | |
static func ~~> <T>(lhs: UIView, rhs: T) where T: RawRepresentable { | |
if let rv = rhs.rawValue as? String { | |
lhs.accessibilityIdentifier = rv | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment