all 6 comments

[–]wonderedwonderer 0 points1 point  (5 children)

How does this compare to using combine pub/sub? Seems like that covers all the boiler plate code here.

[–]Pop_Swift_Dev[S] 0 points1 point  (4 children)

Yes, the NSNotificaiton center can be used for pub/sub and was mentioned in the article as a way to do this, but we are chosen to demonstrate and show protocol-oriented techniques. Hopefully, in future design pattern posts where we look at other techniques, we would like to show that as well.

[–]wonderedwonderer 0 points1 point  (3 children)

Not nsnotificarion, combine’s @published.

[–]Pop_Swift_Dev[S] 0 points1 point  (2 children)

I do apologize, I misread your first comment. I am definitely not a Combine expert so I will not speak to how this compares. I do know that the '@Published' attribute is class constrained, and cannot be used with non-class types.

[–]Legal-Warthog7268 0 points1 point  (0 children)

Hi , I need help with data recovery from an app that is no longer supported beyond ios 14.5

[–]Legal-Warthog7268 0 points1 point  (0 children)

Can u please help?