Skip to content
It's Vapor Week! Celebrating 10 Years of Vapor Read more

Instance Property

hasUniformType

Returns true if the object has a single uniform type
var hasUniformType: Bool? { get }

Discussion

  • Always true for non-containers

  • True or false for containers

  • Never returns nil; the optional result is an historical artifact of the API