Asks the delegate for the spacing between successive rows or columns of a section.
- macOS 10.11+
The collection view object displaying the flow layout.
The layout object requesting the information.
The index of the section whose line spacing is needed.
The minimum space (in points) to apply between successive lines in a section.
Implement this method when you want to provide custom line spacing for sections in the flow layout. Your implementation can return the same line spacing for all sections or it can return different line spacing for different sections. You can also adjust the line spacing of each section dynamically each time you update the layout. If you do not implement this method, the line spacing is obtained from the properties of the flow layout object.
For a vertically scrolling layout, this value represents the minimum spacing between successive rows. For a horizontally scrolling layout, this value represents the minimum spacing between successive columns. This spacing is not applied to the space between the header and the first line or between the last line and the footer. For more information about how line spacing is applied, see the description of the