getditto / DittoSwiftTools

Diagnostic and Debugging Tools for DittoSwift
MIT License
9 stars 2 forks source link

Swift: Make ToolsViewer customizable in what tools to display #163

Open zmarkan opened 13 hours ago

zmarkan commented 13 hours ago

Split out from discussion here: https://github.com/getditto/DittoAndroidTools/issues/123#issuecomment-2490924512

Tools viewer currently has hardcoded tools to include. That is OK if users want all tools included, but if they only want a subset they would need to integrate independent tools reimplement the tools viewer functionality themselves.

Instead, we should make the tools viewer accept a list of tool objects provided by each library (based on a common interface). Default behaviour should stay the same - include all tools, and if someone wanted to distributed just a subset of the tools they could pass in a custom list.