5 ms·
Export SwiftUI code from Figma designs
- jamil7 7y agoNice project, shapes and vectors would be extremely cool!
- insomnie 7y agoComing soon.
- swebs 7y agoWhat's Figma?
- saagarjha 7y agoA design tool: https://www.figma.com https://www.figma.com
- waste_monk 7y agoI believe they were referring to the Ligma meme, in humorous reference to the fact that Figma is only one letter different to Ligma. e.g. A: "Did you hear about ligma?" B: "No, what is ligma" A: "Ligma balls, haha" (Ligma being an alternative pronunciation of "lick my", similar to gunna / going to)
- saagarjha 7y agoOh, I guess I wasn’t looking for that on Hacker News…
- dep_b 7y agoI don't think SwiftUI will be stable until another two years or so. Swift 1 and 2 were alpha and beta tests, Swift 3 code kind of was the final language where 4 and 5 were cleaning up the API's and syntax and incrementally improving the language. SwiftUI has the same roughness to it and I expect the same kind of breaking changes. Good luck supporting this code until then! But really nice. Once SwiftUI starts working properly it's true WYSIWYG in Xcode and exporting it from Figma really could help speeding up the front-end process.
- favorited 7y agoSwift 1 and 2 didn't have to be stable – SwiftUI does. It's a system library, so it can't do things like change method names, at least not without keeping the old symbols around. Of course, there will be bugs, and behavior will change as the library evolves, but shared library vs language evolution is fundamentally different.
- tradertef 7y agoI've ported my apps to Swift in the first year. Looking back it was not the best approach, but for new applications it makes perfect sense to start with swift only. Regarding SwiftUI, I will wait at least 1 year :).
- dep_b 7y agoI still maintain applications that were started in Swift 1.x. But it looks a lot more like my old Objective-C code, it really took a while before my approaches changed.
- mkchoi212 7y agoThis is insane. If the exported code is somewhat read-able, functions correctly, and the library gets updated as SwiftUI evolves, this is a game changer for iOS devs. However, these are big IFs. Handling navigation, view hierarchy, and view category identification may be very hard to solve.
- traviskirton 7y ago@insomnie Nicely done! Are your hopes to really take this to the next level? It would be awesome to see. Proper export is definitely hard to solve. It's one thing to export bits of color and positioning. But, really making an export that devs can use, and includes the stuff that mkchoi212 mentions, is a definite challenge.
- adam_fallon_ 7y agoIt's not. Design tools have had this kind of functionality for UIKit for years. Making views is absolutely not the hard part of mobile development.
- insomnie 7y agoThis is absolutely the goal. Not to mention bringing this to other design tools. Sketch, Adobe XD, etc.
- mkchoi212 7y agoAwesome! Excited to see where this goes! Keep up the great work!
- joshuawright11 7y agoBeen using SwiftUI pretty in depth for a side project. It's been 80% awesome and 20% super frustrating. I can do so much more with SO much less code, but there are definitely a lot of gaps & annoying issues (particularly around documentation and in depth customization). Fortunately it's easy to fill in the gaps with UIKit & there are some amazing people out there doing documentation (shout out to the guy at https://swiftui-lab.com/ https://swiftui-lab.com/, you've saved me so much time!) Per usual with Apple its a fantastic product launched in a buggy, incomplete state. Still a great option if you're willing to deal with the kinks. Hopefully 2.0 will make it an even more solid (if not de facto) choice for all iOS devs!
- deepu256 7y agoLooks nice. Figma to Flutter would be super awesome.