Open in app
James Rochabrun
2K Followers
About

Sign in

2K Followers
About
Open in app
If you are creating a Swift protocol and you want to make its functions optional as you would with…
1
1

Charlie Adams

James Rochabrun

James Rochabrun

Feb 9, 2017·1 min read

Hi Charles, thank you for reading, I updated the post, based on what I researched Swift does not have the concept of optional protocols, although, you can do it by using the @objc keyword or using an extension as you say :)

Written by

James Rochabrun

Senior iOS Engineer #latinintech

More from James Rochabrun

Senior iOS Engineer #latinintech

More From Medium

Functional programming in Swift

James Rochabrun in Noteworthy - The Journal Blog

Generic networking layer using Combine in Swift UI.

James Rochabrun in If let swift = Programming!

You Are Being Lied to About Inflation. It Hasn’t Been 2% for 30 Years (Here’s Proof).

Tim Denning in The Ascent

Object-Oriented Programming is The Biggest Mistake of Computer Science

Ilya Suzdalnitski

Here Is the Real Reason Why Photos Are Banned in the Sistine Chapel

Jason Ward in ILLUMINATION-Curated

Stop Using Print to Debug in Python. Use Icecream Instead

Khuyen Tran in Towards Data Science

The Easiest Way To Get Rich With Stocks

Rocco Pendola in Making of a Millionaire

The Bitcoin Dream Is Dead

James Surowiecki in Marker

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store