Skip to content

1.1.0 - Completion Callback

Compare
Choose a tag to compare
@rakuyoMo rakuyoMo released this 26 Sep 07:08
· 311 commits to master since this release

Add

The preview(_:style:) method adds a completion callback. The caller can now be notified when data processing is complete.

The full definition of the method is now as follows.

/// Preview json.
///
/// - Parameters:
///   - json: The json to be previewed
///   - style: Highlight style. See `HighlightStyle` for details.
///   - completion: Callback after data processing is completed.
func preview(_ json: String, style: HighlightStyle = .default, completion: (() -> Void)? = nil)