Swiftpack.co -  EnesKaraosman/DesignDetective as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
EnesKaraosman/DesignDetective
Compare your implementation and design, see how much they match!
.package(url: "https://github.com/EnesKaraosman/DesignDetective.git", from: "1.0.1")

DesignDetective

Preview

Usage

You may trigger anywhere, but I personally prefer using it via Shake Gesture

import DesignDetective

extension UIWindow {
    open override func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
        #if DEBUG
        if motion == .motionShake {
            if DesignDetective.shared.isActive {
                DesignDetective.shared.deActivate()
            } else {
                try? DesignDetective.shared.activate()
            }
        }
        #endif
    }
}

Our Detective grabs the most top view controller's view's snapshot (image), and presents a screen (including image) above actual screen.

Accepts you to load image (via a URL), after you paste a url to your clipboard, you should be ready to go.

Or alternatively you can select an image from your photo album. (You can drag drop an image to the simulator)

To activate the detective, shake simulator/device ( for simulator => menu Device > Shake or via shortcut Ctrl + CMD + Z )

Reset Selected Image

  • Double tap the selected Image

GitHub

link
Stars: 32
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

4 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API