Swift. Two-way communication between an iOS app and watchOS app. PART 2

Swift. Two-way communication between an iOS app and watchOS app. PART 2
In the previous article we created very simple SyncService service that can send and receive data between iOS as watch app. Which is good for very simple scenarios, but when application complexity is growing it is really important to keep you code clean, and well organized. In this article we will try to isolate sync logic from the rest of the application. In one of my project I had to synchronize data based on different events, in different part of application.
Read more →

Swift. Two-way communication between an iOS app and watchOS app. PART 1

Swift. Two-way communication between an iOS app and watchOS app. PART 1
So, you have decided to create iOS application with its watch companion application. And, you need to exchange some data between two of them. For this scenario Apple provides simple WatchConnectivity framework, that specifically designed for this type of scenarios. This framework does most of the heavy lifting and your goal is simply to implement the business logic. In this article consists of two parts: Part 1. Minimum you need to sync data.
Read more →

Swift. Get Application Basic Info

Swift. Get Application Basic Info
Very often you need to get basic application information, for example to show user an application version or maybe some issue has occurred and you want to collect some details about user device. Some information are relatively easy to get some are not so. So, lets get some basic information. Personally, I prefer keep that information isolated and in one place. Lets create AppInfo struct and add couple of imports.
Read more →