You can somewhat design how it looks,
but you can't define or show how it works.
Adobe XD works a lot like Illustrator (and InDesign) but is much better geared towards interface design. Simply Open or Copy/Paste anything from Illustrator to XD, easy enough.
Oorspronkelijk geplaatst op Quora: Can I use Adobe Illustrator to design a user interface of applications?"