Uploaded image for project: 'Swift'
  1. Swift
  2. SR-12089

Swift 5.2 snapshot: didSet not called

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Compiler
    • Environment:

      Xcode Version 11.2.1 (11B500)

      Toolchain: Swift 5.2 Snapshot 2020-01-25 (a)

      Description

      Whilst running the Swift 5.2 toolchain 2020-01-25 I noticed that didSet did not get called correctly on a propertyWrapper backed property. 

      I've included an example project to illustrate the issue. 

      Reproduction steps

      • navigate to contentView.swift
      • add a breakpoint to line 24
      • run the app in simulator 
      • add new expense by pressing the + button
      • fill in the form 
      • click save 
      • notice that the breakpoint isn't called
      • this is not the case with included swift in xcode

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              lindsey89 Lindsey Ireland
              Votes:
              3 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: