Sort array of objects by multiple properties with Swift Tuple

Learn how tuple can help you in sorting.

How to sort by multiple properties in Swift

Learn how to sort an array of objects with multiple criteria.

Different ways to sort an array of strings in Swift

Learn a proper way to sort an array of strings in each circumstance.

How to loop in Swift

Learn different ways of using for loop for each scenario.

How to get the first N elements of array in Swift

Learn a few ways to do it and things you should know when using them.

Decode an array with a corrupted element

When working with an unstable, legacy, or third party API, you might get a malformed object in an array. Learn how to decode a JSON array with corrupted data in Codable safely.

How to split a string into an array of substrings in Swift

Learn different ways to split a string into an array of substrings.

See all tags.