Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-12089] Swift 5.2 snapshot: didSet not called #54525

Closed
swift-ci opened this issue Jan 27, 2020 · 2 comments
Closed

[SR-12089] Swift 5.2 snapshot: didSet not called #54525

swift-ci opened this issue Jan 27, 2020 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself property wrappers Feature: property wrappers

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-12089
Radar rdar://problem/58999150
Original Reporter lindsey89 (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode Version 11.2.1 (11B500)

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

Additional Detail from JIRA
Votes 3
Component/s Compiler
Labels Bug, PropertyWrappers
Assignee None
Priority Medium

md5: 21c46ed73b44e201c5901af9e79428cc

is duplicated by:

  • SR-12350 Projected PropertyWrappers don't trigger didSet when their wrappedValue is mutated
  • SR-12407 Calling .toggle on a wrapped boolean no longer calls didSet

relates to:

  • SR-12178 willSet not firing when used with a property wrapper

Issue 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

@beccadax
Copy link
Contributor

@swift-ci create

@slavapestov
Copy link
Member

#29931

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself property wrappers Feature: property wrappers
Projects
None yet
Development

No branches or pull requests

3 participants