Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
This repository was archived by the owner on May 13, 2025. It is now read-only.

Add the ability to snap instance of view? #4

@aunnnn

Description

@aunnnn

First of all, thanks for the hard work!

Would like to know your opinion on adding new set of APIs to Salsa for capturing UIView instance conveniently. Seems like the current code forces us to instantiate new UIView instances and return them via static function:

static func artboardElements() -> [[ArtboardElement]] 

One usecase of this is to allow it to snap views during the UI automation. I experimented with it to generate Sketch file as visual documentation of an app (removing filtering/purging to keep exact copy of view hierarchies).

The additional APIs could be something like what I did there:
https://github.com/aunnnn/salsa-AutoSketch/blob/master/Salsa/Salsa%2BAutoSketch.swift

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions