{"id":18293,"date":"2017-07-05T16:51:16","date_gmt":"2017-07-05T20:51:16","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=18293"},"modified":"2017-07-05T18:35:40","modified_gmt":"2017-07-05T22:35:40","slug":"google-tries-swiftify-converter","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/07\/05\/google-tries-swiftify-converter\/","title":{"rendered":"Google Tries Swiftify Converter"},"content":{"rendered":"<p><a href=\"https:\/\/medium.com\/google-developers\/migrating-from-objective-c-to-swift-googlecast-reference-app-81030ce814ce\">Ibrahim Ulukaya<\/a> (via <a href=\"https:\/\/twitter.com\/steipete\/status\/881417598973423616\">Peter Steinberger<\/a>):<\/p>\n<blockquote cite=\"https:\/\/medium.com\/google-developers\/migrating-from-objective-c-to-swift-googlecast-reference-app-81030ce814ce\"><p>Recently <a href=\"https:\/\/twitter.com\/ToddKerpelman\">@ToddKerpelman<\/a> and I converted <a href=\"https:\/\/github.com\/googlecast\/CastVideos-ios\">a reference iOS Google Cast app<\/a> to Swift. [&#8230;] Blame me being lazy. I didn&rsquo;t want to do to mundane work of declaring each variable and function in Swift. I decided to take a leap in faith and try a converter tool as a starter.<\/p><p>[&#8230;]<\/p><p>What I received looked like a Swift code. There were double definitions of the variables as they got imported from both .h and .m. Some of the definitions that should&rsquo;ve been on the top of the file were on the bottom. But in general it looked like I saved tons of hours of mundane work to fix dots and parentheses. Because of the original code, I even saw definitions like <code>private(set) public var<\/code>.<\/p><p>[&#8230;]<\/p><p><a href=\"https:\/\/objectivec2swift.com\/\">Swiftify<\/a> saved us valuable time instead of converting the project line by line. (As long as you [know] it&rsquo;s not going to do the all work for you. It&rsquo;ll be a guesstimate.)<\/p><\/blockquote>\n<p>Previously: <a href=\"https:\/\/mjtsai.com\/blog\/2012\/09\/14\/j2objc\/\">J2ObjC<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Ibrahim Ulukaya (via Peter Steinberger): Recently @ToddKerpelman and I converted a reference iOS Google Cast app to Swift. [&#8230;] Blame me being lazy. I didn&rsquo;t want to do to mundane work of declaring each variable and function in Swift. I decided to take a leap in faith and try a converter tool as a starter.[&#8230;]What [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[75,51,54,71,901,1263],"class_list":["post-18293","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-developertool","tag-google","tag-objective-c","tag-programming","tag-swift-programming-language","tag-swiftify"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=18293"}],"version-history":[{"count":3,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18293\/revisions"}],"predecessor-version":[{"id":18302,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/18293\/revisions\/18302"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=18293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=18293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=18293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}