Skip to content

Support Swift in ios template project #7312

Closed

Description

@mikemimik

As Swift is the future of development with any Apple product, I'd like to know if the ios template that is generated from flutter create could be a swift template rather than an obj-c template.

The code readability of swift in substantially higher that obj-c and seeing as how one of flutters goals is to make development across platforms simple, readability is an easy way to help with simplicity.

Activity

  1. sethladd commented on Dec 27, 2016

    @sethladd
    Contributor

    I like this idea. I personally find myself able to read and understand Swift, but not ObjC.

  2. mit-mit commented on Dec 29, 2016

    @mit-mit
    Member

    I like it too; Swift is a lot easier to read.

    But for plugins / native interop purposes we likely will need to support both. AFAIK that should be possible, as iOS supports projects with both using "mix and match":
    https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html

  3. sethladd commented on Jan 3, 2017

    @sethladd
    Contributor

    @mit-mit if we change the output of flutter create to use Swift, how would that impact plugins?

    (agreed that our plugins should support user code written in both objc and swift)

  4. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Jan 3, 2017
  5. mit-mit commented on Jan 4, 2017

    @mit-mit
    Member

    We think it will be fine, but we need to do more work to confirm it.

  6. added
    p: toolingAffects the flutter_plugin_tools package
    and removed
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Feb 2, 2017
  7. 1 remaining item

  8. mit-mit commented on Mar 27, 2017

    @mit-mit
    Member

    Changing this to supporting Swift as an option, in addition to OjbC. This could be something like flutter create -swift myapp

  9. changed the title [-]Request: convert ios template project from obj-c to swift[/-] [+]Support Swift in ios template project[/+] on Mar 27, 2017
  10. rxlabz commented on Apr 18, 2017

    @rxlabz
    Contributor

    I suppose it's planned, but an option for swift plugin template like flutter create --plugin -swift myplugin would also be handy.

  11. eseidelGoogle commented on May 16, 2017

    @eseidelGoogle
    Contributor
  12. self-assigned this
    on May 22, 2017
  13. mravn-google commented on May 24, 2017

    @mravn-google
    Contributor

    Closed per #10259

  14. added a commit that references this issue on Feb 12, 2019
  15. github-actions commented on Sep 4, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  16. locked as resolved and limited conversation to collaborators on Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

p: toolingAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions