Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-355

Make options properties mutable to allow changing properties on them after creation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.1
    • Component/s: None
    • Labels:

      Description

      All of the properties on our options objects are declared with let, which means you can't set them after declaring the options object.

      We should change them to var so you can do something like the following:

      var opts = FindOptions()
      opts.batchSize = 10

      We should also add empty initializers for each options struct so XCode users see that show up in autocomplete.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: