Telegram Group & Telegram Channel
3 способа использования enum, которые должны быть в вашем арсенале

💪 Перечисление (enum) - это очень мощный тип в Swift. Каждый из нас использует его практически в каждом проекте.

Сегодня я хотел бы поделиться некоторыми приемами работы с перечислениями в Swift, о которых могут знать не все.

🧐 Если у вас солидный бэкграунд, то вы будете в курсе, но освежить знания не помешает.

В публикации рассматривается три блока:

1️⃣ Сложные случаи с привязкой значений.

2️⃣ Если нас интересуют конкретный кейс перечисления, то можно использовать if let и guard let.

3️⃣ Если связанное значение optional, то также можно использовать соответствующий шаблон. Это будет более понятно на конкретных примерах из статьи.

@iOS Dev
👍12🔥32🤔2



tg-me.com/iosdev/269
Create:
Last Update:

3 способа использования enum, которые должны быть в вашем арсенале

💪 Перечисление (enum) - это очень мощный тип в Swift. Каждый из нас использует его практически в каждом проекте.

Сегодня я хотел бы поделиться некоторыми приемами работы с перечислениями в Swift, о которых могут знать не все.

🧐 Если у вас солидный бэкграунд, то вы будете в курсе, но освежить знания не помешает.

В публикации рассматривается три блока:

1️⃣ Сложные случаи с привязкой значений.

2️⃣ Если нас интересуют конкретный кейс перечисления, то можно использовать if let и guard let.

3️⃣ Если связанное значение optional, то также можно использовать соответствующий шаблон. Это будет более понятно на конкретных примерах из статьи.

@iOS Dev

BY iOS Dev




Share with your friend now:
tg-me.com/iosdev/269

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

Telegram and Signal Havens for Right-Wing Extremists

Since the violent storming of Capitol Hill and subsequent ban of former U.S. President Donald Trump from Facebook and Twitter, the removal of Parler from Amazon’s servers, and the de-platforming of incendiary right-wing content, messaging services Telegram and Signal have seen a deluge of new users. In January alone, Telegram reported 90 million new accounts. Its founder, Pavel Durov, described this as “the largest digital migration in human history.” Signal reportedly doubled its user base to 40 million people and became the most downloaded app in 70 countries. The two services rely on encryption to protect the privacy of user communication, which has made them popular with protesters seeking to conceal their identities against repressive governments in places like Belarus, Hong Kong, and Iran. But the same encryption technology has also made them a favored communication tool for criminals and terrorist groups, including al Qaeda and the Islamic State.

For some time, Mr. Durov and a few dozen staffers had no fixed headquarters, but rather traveled the world, setting up shop in one city after another, he told the Journal in 2016. The company now has its operational base in Dubai, though it says it doesn’t keep servers there.Mr. Durov maintains a yearslong friendship from his VK days with actor and tech investor Jared Leto, with whom he shares an ascetic lifestyle that eschews meat and alcohol.

telegram from us


Telegram iOS Dev
FROM USA