OpenGL ES version test

How to test if a device supports OpenGL ES 3.0 in Swift?