Protocol Oriented Programming Overview

Protocol in Objective-C

Protocol in Swift

Protocol extension

protocol LayoutDrawable {
		func drawSomeLayout()
}

class MyView: UIView, LayoutDrawable {

}

extension LayoutDrawable {
		func drawSomeLayout() {
				// Draw some layout..
		}
}

Idea from?

스크린샷 2022-06-29 오후 7.28.17.png

스크린샷 2022-06-29 오후 7.28.34.png

POP & Value in Project

Social Media

Model, View, Controller with POP & Value

스크린샷 2022-06-29 오후 7.30.03.png