iOS / Mac / Swift

computer with typing image

XCTest and Optional Unwrapping

XCTest is designed to help write tests in Swift and is used for Swift packages and applications. The preferred unit test Swift organizes test cases and asserts expectations in your application code. One of the biggest challenges to Unit Testing in Swift is often the setup. XCTest helps manage optionals Swift, Swift guard let and Swift assertions. Learn the problem with XCTest and the simple fix to help you use it in a more efficient way.

Read More

Tools We Love – iOS and Android

This time of year is often associated with greeting cards and chocolate, but the team at Raizlabs is showing the love by opting out of flowers and into sharing our favorite tools. We love developing impactful products that change lives. Our favorite tools help us spend more time writing code, and less time in the […]

Read More

Fixing Controls in Scroll Views on iOS

Learn more about UIScrollView. From ScrollView iOS to UIScrollView iOS, discover how our workaround keeps your UI feeling smooth and consistent with the design language of iOS.

Read More

SIGTRAP: Decoding A Cryptic Objective-C + Swift Crash

In 2015, Raizlabs switched over to Swift for all iOS development. The move has been rewarding; Swift’s commitment to type safety and optional handling decreased our overall defect and crash rates (and increased developer happiness.) While this increased safety is awesome for Swift-only apps, it can introduce some hiccups in legacy Objective-C + Swift hybrid […]

Read More

Introducing RIGImageGallery

RIGImageGallery is a component from the Raizlabs Interface Guidelines, which is a set of UI components that offer sensible defaults to help a project get off the ground quickly and feel native to the platform, and with easy-to-use customization options. RIGImageGallery is designed to display a gallery of images with the expected behaviors established by […]

Read More

Cleaner Credit Card Detection in Swift

Learn more about how to detect credit card type using Swift. From credit card prefixes to finding the credit card type by number, discover how auto-type detection is a nice UX touch for making a form feel responsive and quickly informing the user of validation issues.

Read More

Method Dispatch in Swift

Learn more about how Swift Method and Swift dispatch works. From direct dispatch to nsobject in Swift, take a tour through method dispatch and understand a bit more about using Swift.

Read More

Why Firebase: The Good, Bad, and the Ugly

Learn more about the Firebase Database service. From seeing exactly what Firebase is to what Firebase is used for, click here to observe how this real-time database is unrivaled when it comes to how quickly you can move as a developer.

Read More

Introducing BonMot 4: Now With Dynamic Type

I wrote BonMot quite by accident. I just wanted to document some typographic tips and tricks that I had learned. NSAttributedString and TextKit are powerful, but they can be impenetrable, and I wanted to shed some light on the situation. However, as I collected my thoughts, I realized that a unified interface for accessing disparate typographic features […]

Read More

Writing Libraries for Swift 2.x and 3.0 Compatibility

Learn more about Swift libraries and how to check the Swift versions for compatibility. Discover how to check swift versions and swift libraries from expert developers, and develop a strategy for using the Swift Standard Library and Cocoa libraries in a call site-compatible manner.

Read More