Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 70

mobileClematis
Aspiring developer
Profile
Posts: 36
Reg: Oct 21, 2014
Kolkata, India
10,860
10/29/14 02:21 AM (9 years ago)

Swift Support

Does Swift support in Buzztouch? If I write a plugin in Swift will it be accepted?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
10/29/14 02:23 AM (9 years ago)
Read the swift section of this post, may bring you some insight ;-) https://www.buzztouch.com/blog/2014/06/wwdc-afterthoughts/ Cheers, David Van Beveren http://btmods.com/chat ^ Chat with other BT members live! http://btmods.com/hire ^ Hire MrDavid for one of his services!
 
mobileClematis
Aspiring developer
Profile
Posts: 36
Reg: Oct 21, 2014
Kolkata, India
10,860
like
10/29/14 02:29 AM (9 years ago)
Thanks for sharing this. Its a great news that now I can write plugin using Swift.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
10/29/14 05:52 AM (9 years ago)
I don't believe you will be able to. Buzztouch projects are written in Objective-C, not Swift. You can put obj-c in a wrapper to make it work in a swift project, but I haven't heard of any way going the other way. You would need to convert the entire core to Swift first, and then create a Swift plugin. At that point, you lose any benefits associated with the plugin process or Buzztouch in general though.
 
mobileClematis
Aspiring developer
Profile
Posts: 36
Reg: Oct 21, 2014
Kolkata, India
10,860
like
10/29/14 05:55 AM (9 years ago)
Ok... Then it will be better to stick to Objective C for now. Anyways is there any plan to provide the BT_Core in Swift?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
10/29/14 05:59 AM (9 years ago)
Haven't heard of any plans. Probably will happen at "some" point, but I wouldn't expect it anytime soon. There's just not enough benefits for making the switch to warrant the amount of work that would be required at this point.
 
mobileClematis
Aspiring developer
Profile
Posts: 36
Reg: Oct 21, 2014
Kolkata, India
10,860
like
10/29/14 06:04 AM (9 years ago)
OK. Thanks.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
10/30/14 12:11 AM (9 years ago)
@Chris, BT Projects are written in OBJC, but the new Xcode should allow swift code to work in unison, or at least, that's what I thought I understood? I *really* need to start reading up on the swift documentation, but I only JUST got a good grip on Objective-C, LOL. Cheers, David Van Beveren http://btmods.com/chat ^ Chat with other BT members live! http://btmods.com/hire ^ Hire MrDavid for one of his services!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
10/30/14 07:25 AM (9 years ago)
David - to be honest, I haven't dug into Swift much yet. My understanding was that Swift was backward compatible with Obj-C, but not the other way around. But I could be wrong - Apple may have updated iOS8 to handle it either way you go.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.