Can we use sketch UI elements directly into Xcode?

ios nerd picture ios nerd · Sep 7, 2016 · Viewed 11k times · Source

I am new to sketch 3. I have a hand on experience with Xcode and iOS development.

My question is wether we can directly use sketch elements in xcode or sketch is only used for prototyping the UI?

For example, If I design Label with a text field in sketch then can I used it as UI Label and UITextField in Xcode?

Answer

Vash picture Vash · Nov 9, 2019

In my experience as a designer that also develops in Xcode any solutions that claim to go directly from Sketch into Xcode either become vapourware after some time or don't provide a very good solution. I assume it's because Auto Layout is quite complicated and fragile.

It's best to just learn iOS development using Storyboards or possibly SwiftUI for layout. There are some elements that you can get from Sketch into Xcode such as colors, typography and iconography.

Here's a list of apps that can help you with that: