A strongly-typed language like Swift is a big blessing. I truly love how refactoring of code becomes a less scary operation. Today if I change the type of a variable, it won't compile (ok, I can hear you ask about "Any"... just don't), and…
Swift: Raw{Not}Representable enum
Preconditions: Xcode Version 6.3 (6D532l), Swift 1.2 In Swift [https://blog.krzyzanowskim.com/2015/03/09/swift-asserts-the-missing-manual/] > An enumeration defines a common type for a group of related values and enables you to work with those values in a type-safe way within yout code | > Enumerations are…
Swift asserts - the missing manual
> assertion - a confident and forceful statement of fact or belief. Something declared or stated positively, often with no support or attempt at proof. The assertions are neat debugging tool [https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html#//apple_ref/doc/uid/…
Swift: Madness of Generic Integer
Handling Integers with Swift is not the easiest task. Especially when I need the generic function that can do some work on any kind of Integer. There are 11 Integer types that can be considered as Integers: * Int8 * UInt8 * Int16 * UInt16 * Int32 * UInt32 * Int64 * UInt64 * Int * UInt * Bit (I'…
Google sign-in with 1Password
I'm heavy user of 1Password [https://agilebits.com/onepassword]. This is great tool, with all my password. Since iOS 8.0, 1Password gave me extension [https://github.com/AgileBits/onepassword-app-extension] so now I can login to applications with 1Password, without typing my login details (I use really long…