SwiftUI-Kit icon indicating copy to clipboard operation
SwiftUI-Kit copied to clipboard

Show code in app

Open Nef10 opened this issue 3 years ago • 3 comments

The app reminds me a little bit of an app I've used before: Fiori Mentor

It offers the option to copy the code directly from within the app, see here. Maybe we could offer something similar?

Disclosure: The app was developer by my employer, however I was not involved.

Nef10 avatar Jul 11 '20 18:07 Nef10

Nice. I definitely see copying snippets on Mac being useful. What are your thoughts about that on iOS?

jordansinger avatar Jul 11 '20 19:07 jordansinger

I think there’s definitely still a place for code snippets in the iOS version, particularly with Universal Clipboard across iOS and macOS - it’d be great to browse the kit on iPhone or iPad and then copy a snippet and have it available to paste into Xcode on your Mac.

tarrouye avatar Jul 11 '20 22:07 tarrouye

I also think it would most useful on macOS and on iOS still a little bit useful. If we are going to implement it anyway, why not show it on both platforms, shouldn't be this much work. We also should consider adding a link to Apples documentation from there.

However, I am currently not sure what the best way is to show this functionality, as I think adding an (i) button next to every element seems a little bit overwhelming.

Nef10 avatar Jul 12 '20 03:07 Nef10