The recommended dimensions of the drawable.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
Framework
- Metal
Kit
Declaration
var preferredDrawableSize: CGSize { get }
The recommended dimensions of the drawable.
SDKs
Framework
var preferredDrawableSize: CGSize { get }
var color Pixel Format: MTLPixel Format
The color pixel format for the current drawable’s texture.
var colorspace: CGColor Space?
The color space of the rendered content.
var framebuffer Only: Bool
A Boolean value that determines whether the drawable’s textures are used only for rendering.
var drawable Size: CGSize
The current size of drawable textures.
var auto Resize Drawable: Bool
A Boolean value that controls whether to resize the drawable as the view changes size.
var clear Color: MTLClear Color
The color to use to clear the color target when creating a render pass descriptor.