Products Google for Education Blockly Reference Blockly Framework Reference FieldLayoutMeasurer public protocol FieldLayoutMeasurer Protocol for measuring the size of a Layout when it is rendered. measureLayout(_:scale:) Measures and returns the amount of space needed to render a FieldLayout, in a UIView. Declaration Swift static func measureLayout(_ layout: FieldLayout, scale: CGFloat) -> CGSize Return Value The amount of space needed, in UIView coordinates. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Last updated December 1, 2017.