Debugging Swift Objects in LLDB

Feb 15, 2017 - 1 minutes
Given an address of the object, one can interact with it via LLDB. To do this, you need to import the corresponding module (like UIKit, or your app’s module) and then cast the address to a new variable using Swift’s unsafeBitCast like this: (lldb) expr -l Swift -- import UIKit (lldb) expr -l Swift -- let $view = unsafeBitCast(0x7fb75d8349c0, to: UIView.self) You may also be interested in this SO question. Read more ...

UDP Server and Client in Swift

Feb 19, 2016 - 1 minutes
I recently had a chance to work on a iOS Client written in Swift that would talk to a UDP server. The app basically needed to send a request to the server and receive the response. All over UDP. It turned out to be quite a simple task if done using the CocoaAsyncSocket. I set up a simple Mac OS X test server and a corresponding iOS test client. The sources are here: Read more ...

Building a Login Page for an iOS App

Nov 25, 2015 - 3 minutes
When it came to building an app with a login screen I got a bunch of questions. And I found some answers to them scattered all over the Internet. It might seem an obvious task, but I really wanted to find a guide with some clarifications. I wasn’t lucky enough to do that so I decided to describe my way of building a [first] login view myself. First of all, you can find the final sources for this post at https://github. Read more ...