1.1.0 - Completion Callback
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)