Рет қаралды 1,990
In this video you will find explanation of a decorator pattern and its implementation in Swift.
Decorator is a structural pattern that allows adding new behaviors to objects dynamically by placing them inside special wrapper objects, called decorators.
Using decorators you can wrap objects countless number of times since both target objects and decorators follow the same interface. The resulting object will get a stacking behavior of all wrappers.
My name is Andrew and I'm an iOS Developer. Here I'm posting Swift tutorials, Xcode tips and tricks, coding challenges and how to prepare for iOS Interview.
Subscribe: / @afswifttutorials
MORE VIDEOS
iOS Tutorials: cutt.ly/RvqPLEj
LINKS & ATTRIBUTIONS
Source Code: github.com/And...
[ DISCLOSURES ]
This post may contain affiliate links, which help Andrew Foster Channel with a commission if you make a purchase.