Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Swift 2 Design Patterns

You're reading from   Swift 2 Design Patterns Build robust and scalable iOS and Mac OS X game applications

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781785887611
Length 224 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Julien Lange Julien Lange
Author Profile Icon Julien Lange
Julien Lange
Arrow right icon
View More author details
Toc

Summary

This chapter concludes the discovery of the seven structural patterns. The adapter pattern has much more in common with the bridge pattern. The main difference is in the purpose of the pattern.

A bridge separates an interface and its implementation, whereas an adapter changes the interface of an existing object.

The decorator adds a functionality to an object without changing its interface and should be transparent to the application. For the adapter, this is not the case, it is not transparent from the client perspective: the adapter is the named implementation of the interface that a client sees, so the adapter is not hidden from the client.

The proxy pattern doesn't change any interface. It defines substitute objects for other objects.

The facade pattern transforms high-level requests into low-level requests by communicating with other subsystems. It hides the complexity of these subsystems by providing a simple interface that the client can see.

In the next chapter, we will...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image