I use this repository to upload some examples, exercises, and mini-projects that I use to practice iOS development with Swift. The exercises are not related to any particular subject, they are just problems that at a certain time I considered interesting and/or useful.
Currently, the majority of the exercises are updated to Swift 4, but since this is just an informal repository that I use to practice, surely some of them will get deprecated at some point.
- GrandCentralDispath: A collection of examples that use GCD to perform an operation synchronously and asynchronously, perform many concurrent tasks in the background, use different priorities, etc.
- AsyncAutoSuggestExample: An app that asynchronously downloads names of different companies meanwhile the user writes the name (an example of the use of
DispatchWorkItem
). - BlurEffect: Example of the use of
UIBlurEffect
in a view. It uses a storyboard and it's also made programmatically. - AutoresizingMasks: Contains different examples of the use of the
autoresizingMask
property of anUIView
. - Generics: Differents examples of the use of Generics in Swift 4.
- Strings: A playground with different examples of the use of strings in Swift 4.
- MVVCAlarmExample: A simple project to show the usage and implementation of MVVM design pattern.
- InternalConstantsNamespace: Alternatives to work with constants in a project.
- OperationQueueExample: A simple implementation using
OperationQueue
andOperation
. - CodableExample: Example of the implementation of the
Codable
protocol. - KVOExample: Using KVO in Swift (accessing to ObjC runtime).