You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Proton/Sources/Swift/Grid/View/GridCell.swift
+5-23
Original file line number
Diff line number
Diff line change
@@ -182,29 +182,28 @@ open class GridCell {
182
182
183
183
letinitialHeight:CGFloat
184
184
185
-
186
185
/// Initializes the cell
187
186
/// - Parameters:
188
-
/// - editorInitializer: Closure for setting up the `EditorView` within the cell. I
189
187
/// - rowSpan: Array of row indexes the cells spans. For e.g. a cell with first two rows as merged, will have a value of [0, 1] denoting 0th and 1st index.
190
188
/// - columnSpan: Array of column indexes the cells spans. For e.g. a cell with first two columns as merged, will have a value of [0, 1] denoting 0th and 1st index.
191
189
/// - initialHeight: Initial height of the cell. This will be updated based on size of editor content on load,
192
190
/// - style: Visual style of the cell
193
191
/// - gridStyle: Visual style for grid containing cell border color and width
194
192
/// - ignoresOptimizedInit: Ignores optimization to initialize editor within the cell. With optimization, the editor is not initialized until the cell is ready to be rendered on the UI thereby not incurring any overheads when creating
195
193
/// attributedText containing a `GridView` in an attachment. Defaults to `false`.
194
+
/// - editorInitializer: Closure for setting up the `EditorView` within the cell.
196
195
/// - Important:
197
196
/// Creating a `GridView` with 100s of cells can result in slow performance when creating an attributed string containing the GridView attachment. Using the closure defers the creation until the view is ready to be rendered in the UI.
198
197
/// It is recommended to setup all the parts of editor in closure where possible, or wait until after the GridView is rendered. In case, editor must be initialized before the rendering is complete and it is not possible to configure an aspect within the closure itself,
199
198
/// `setupEditor()` may be invoked. Use of `setupEditor()` is discouraged.
0 commit comments