Archive

2024

2023

2022

2021

Illustration: Fitting Text into a Bounding Frame on iOS DEVELOPMENT iOS Swift Tips Fitting Text into a Bounding Frame on iOS How to use a binary search algorithm to precisely fit multiline text into a bounding frame on iOS. Illustration: Swift Render Tests in Practice — Part III DEVELOPMENT iOS Swift Testing Tips Swift Render Tests in Practice — Part III How to automate regenerating and updating reference images for render tests. Illustration: Swift Render Tests in Practice - Part II DEVELOPMENT iOS Swift Testing Tips Swift Render Tests in Practice - Part II How to improve test failures with attachments and grouping related test output. Illustration: Swift Render Tests in Practice - Part I DEVELOPMENT iOS Swift Testing Tips Swift Render Tests in Practice - Part I How to pragmatically approach render testing for custom drawing code. Illustration: Debugging Image Loading and Cropping Performance on iOS DEVELOPMENT iOS Swift Tips Debugging Debugging Image Loading and Cropping Performance on iOS We talk about using the Image I/O and Core Graphics APIs to improve the image loading and cropping performance in the PSPDFKit iOS SDK. Illustration: Adding Annotations in Swift with PDFKit vs. PSPDFKit TUTORIALS iOS Swift How To Annotations Adding Annotations in Swift with PDFKit vs. PSPDFKit A post that compares adding annotations in Apple's PDFKit and PSPDFKit. Illustration: Creating and Filling Forms Programmatically in Swift TUTORIALS iOS Swift PDF How To Creating and Filling Forms Programmatically in Swift This blog post explains the process of creating and filling PDF forms programmatically in Swift. Illustration: Streams of Cocoa: Why It's Still Worth Knowing NSStream DEVELOPMENT iOS Swift Tips Streams of Cocoa: Why It's Still Worth Knowing NSStream In this post, we'll look at a piece of API that many people rarely touch, if ever: Stream. It’s neither new nor shiny, but it's a powerful tool when you know how to use it. Illustration: Deflaking CI Tests with xcresults DEVELOPMENT iOS Swift Objective-C Xcode Testing Deflaking CI Tests with xcresults We’re sharing some techniques for tracking down and fixing flaky Xcode tests on CI. Illustration: Keyboard Navigation in SwiftUI DEVELOPMENT iOS Swift Tips SwiftUI UI/UX Accessibility Keyboard Navigation in SwiftUI SwiftUI wasn’t built with keyboard support in mind, and it shows. Learn how you can rewrite keyboardShortcut to work with iOS 13 and access the underlying navigation controller to pop views on ⌘-Left Arrow. Illustration: Using the Document Browser in SwiftUI to Open a PDF TUTORIALS iOS Swift How To SwiftUI Using the Document Browser in SwiftUI to Open a PDF With iOS 14, Apple made it incredibly easy to integrate the document browser into SwiftUI-powered apps. Illustration: Using the SwiftUI ColorPicker on iOS and macOS DEVELOPMENT iOS Swift SwiftUI Tips Using the SwiftUI ColorPicker on iOS and macOS While macOS has offered a system-provided color picker since OS X 10.0 Cheetah, iOS developers had to wait a bit longer. Let's take a closer look at the new ColorPicker (SwiftUI) and UIColorPickerViewController (UIKit) controls. Illustration: How to Unlock PDF Functionality with OCR in iOS TUTORIALS iOS Swift How To How to Unlock PDF Functionality with OCR in iOS This blog post covers how to integrate OCR functionality in iOS, perform OCR, and leverage functionality such as extraction, selection, highlight, and search.

2020

Illustration: Convert a PDF to an Image in Swift TUTORIALS iOS Swift PDF How To Convert a PDF to an Image in Swift This blog post explains how to convert your PDF file to an image using Core Graphics, PDFKit, and PSPDFKit. Illustration: Caching File Downloads with URLCache in Swift DEVELOPMENT iOS Swift Tips Caching File Downloads with URLCache in Swift Apple has a sophisticated caching system in iOS, which is enabled by default. However, documentation around URLCache is quite sparse. Today, we'll look at the behavior of caching when dealing with large files. Illustration: Presenting Popovers from SwiftUI DEVELOPMENT iOS Swift Tips SwiftUI UI/UX Presenting Popovers from SwiftUI Is there a way to present UIKit popovers from toolbar buttons managed by SwiftUI? Illustration: Extending the Scribble User Experience TUTORIALS iOS Swift How To UI/UX Extending the Scribble User Experience How to customize the default Scribble experience to allow users to start writing anywhere. Illustration: An Introduction to LLDB Reproducers DEVELOPMENT Swift Tips Debugging An Introduction to LLDB Reproducers An introduction to an experimental feature in LLDB, Reproducers, that helps reproduce bugs in the debugger itself. Illustration: Adding Multimedia Content to a PDF as a Gallery TUTORIALS iOS Swift How To Adding Multimedia Content to a PDF as a Gallery This post is about the Gallery API in PSPDFKit for iOS that can be used to add interactive multimedia content to a PDF. Illustration: Binary Frameworks as Swift Packages DEVELOPMENT iOS Swift Insights Binary Frameworks as Swift Packages What we learned from experimenting with binary frameworks as Swift packages in Xcode 12. Illustration: Using Metal to Apply Image Filters DEVELOPMENT iOS Swift Performance Using Metal to Apply Image Filters An overview of how to use Metal to apply filters to images to perform a simple color inversion on the input image. Illustration: The Case for Lists in UICollectionView DEVELOPMENT iOS Swift UI/UX Insights The Case for Lists in UICollectionView Exploring the power and flexibility offered by creating lists using UICollectionView. Illustration: The Hidden Trap in Selective Table View and Collection View Reloads DEVELOPMENT iOS Swift Debugging Insights The Hidden Trap in Selective Table View and Collection View Reloads Learn how to properly update cells in a table view or collection view without crashing. Illustration: Automatically Redact Faces with PSPDFKit for iOS TUTORIALS iOS Swift How To Redaction Automatically Redact Faces with PSPDFKit for iOS This post describes how to use PSPDFKit for iOS and Core Image to perform facial redaction in PDF documents. Illustration: NULL-Characters in Strings and Tales of Apple Radar DEVELOPMENT iOS Swift Objective-C Insights NULL-Characters in Strings and Tales of Apple Radar In iOS 11, Smart Punctuation caused data loss. Learn how we fixed the issue and how we are now cleaning up the OS-level workaround. Illustration: Level Up Your Trackpad Support Using UIInteraction DEVELOPMENT iOS Swift Tips UI/UX Level Up Your Trackpad Support Using UIInteraction How to make your iOS app work well with scrolling, secondary clicking and dragging on a trackpad or mouse. Illustration: An In-Depth Look at Blur Effect Materials on iOS TUTORIALS iOS Swift Objective-C UI/UX Insights An In-Depth Look at Blur Effect Materials on iOS This blog post talks in detail about the blur effect materials on iOS and the challenges we faced in picking the appropriate effect for our SDK. Illustration: Supporting Pointer Interactions DEVELOPMENT iOS Swift Tips UI/UX Insights Supporting Pointer Interactions Apple introduced new pointer events in iOS 13.4 to better support trackpad and mouse devices. Illustration: Introduction to SwiftUI for React Developers (Part 2) TUTORIALS iOS Web Swift React How To SwiftUI Introduction to SwiftUI for React Developers (Part 2) A discussion about the basic concepts of SwiftUI from the point of view of a React developer Illustration: Introduction to SwiftUI for React Developers (Part 1) TUTORIALS iOS Web Swift React How To SwiftUI Introduction to SwiftUI for React Developers (Part 1) A discussion of the basic concepts of SwiftUI from the point of view of a React developer. Illustration: How to Add Attribution to PDFs with PSPDFKit for iOS TUTORIALS iOS Swift Objective-C PDF How To How to Add Attribution to PDFs with PSPDFKit for iOS Learn how to include attribution when sharing the contents of a PDF. Illustration: Adopting UIAppearance in Custom Views DEVELOPMENT iOS Swift Objective-C Tips UI/UX Adopting UIAppearance in Custom Views Learn how to support styling your own custom views using UIAppearance.

2019

Illustration: Introduction to C++ for Swift Developers DEVELOPMENT Swift C++ Insights Introduction to C++ for Swift Developers An introduction to the C++ language for Swift developers, with an overview of reasons to use C++ and a look at differences and similarities between the languages. Illustration: Adopting Dark Mode on iOS and Ensuring Backward Compatibility DEVELOPMENT iOS Swift Objective-C UI/UX Adopting Dark Mode on iOS and Ensuring Backward Compatibility A comprehensive overview of adopting Dark Mode in an iOS app, along with a few tips to make the process of development easier. Illustration: Customizing Segmented Controls in PSPDFKit TUTORIALS iOS Swift Objective-C How To Customizing Segmented Controls in PSPDFKit We show how to customize the segmented controls in the document info coordinator. Illustration: Making a Resource Thread-Safe with Locks DEVELOPMENT iOS Swift Tips Making a Resource Thread-Safe with Locks We discuss how to ensure thread safety and synchronization via locking. Illustration: Strategies for Saving and Syncing Annotations Using External Files TUTORIALS iOS How To Swift Instant Annotations Strategies for Saving and Syncing Annotations Using External Files We discuss the different strategies for saving and syncing annotations in external files on iOS. Illustration: Inserting an Image into a PDF with Swift TUTORIALS iOS Swift How To Inserting an Image into a PDF with Swift We provide a step-by-step explanation of how to insert an image into a PDF using Swift. Illustration: Is My Document a Valid PDF? TUTORIALS iOS Swift Objective-C PDF How To Is My Document a Valid PDF? Discover how to determine if your PDF has an invalid PDF format and learn effective methods for validation and correction. Explore common issues and solutions with PSPDFKit. Illustration: Swizzling in Swift DEVELOPMENT iOS Swift Tips Swizzling in Swift A quick crash course on how to swizzle correctly, and how to do it in Swift 5.1 Illustration: Working with PDF Metadata in Swift DEVELOPMENT iOS Swift PDF Tips Working with PDF Metadata in Swift How and what metadata can be stored in a PDF, and how to programmatically work with this information. Illustration: Drawing on PDFs Using Ink Annotations TUTORIALS iOS Swift How To Drawing on PDFs Using Ink Annotations We show how to draw on a PDF using an ink annotation in PDFKit. Illustration: How to show a PDF in SwiftUI TUTORIALS iOS Swift PDF How To SwiftUI How to show a PDF in SwiftUI How to show a PDF using SwiftUI, Apple's PDFKit, and Nutrient iOS SDK. Illustration: Merge PDFs in Swift TUTORIALS iOS Swift PDF How To Merge PDFs in Swift How to merge multiple PDF files in Swift. Illustration: Secure Documents with PSPDFKit for iOS TUTORIALS iOS Swift Objective-C PDF How To Security Secure Documents with PSPDFKit for iOS How to secure documents using PSPDFKit for iOS. Illustration: PDF Text Extraction in Swift TUTORIALS iOS Swift How To PDF Text Extraction in Swift We demonstrate how to extract text from a PDF using Swift via PDFKit. Illustration: Watermarking a PDF on iOS TUTORIALS iOS Swift How To Watermarking a PDF on iOS We explain how to watermark a PDF — both temporarily and permanently. Illustration: Extracting Images from a PDF in Swift TUTORIALS iOS Swift How To Extracting Images from a PDF in Swift How to extract images from a PDF with Swift. Illustration: PSPDFKit and Swift DEVELOPMENT iOS Swift Insights PSPDFKit and Swift Will PSPDFKit for iOS move to Swift? In this post, we weigh the pros and cons. Illustration: ’Annotate PDFs with Images via PDFKit’ TUTORIALS iOS Swift How To ’Annotate PDFs with Images via PDFKit’ ’We show you how to annotate a PDF with an image via PDFKit.’ Illustration: Adding Logging to Crash Reports DEVELOPMENT iOS Swift Tips Debugging Adding Logging to Crash Reports Understanding crash reports is often difficult without extra context. Learn how we attach application logs to crash reports via Google's Firebase Crashlytics in the free PDF Viewer for iOS app. Illustration: Converting an Image to a PDF in Swift TUTORIALS iOS Swift How To Converting an Image to a PDF in Swift We provide a step-by-step explanation of how to convert an image to a PDF. Illustration: How to Convert HTML to PDF with Swift TUTORIALS iOS Swift HTML How To How to Convert HTML to PDF with Swift A tutorial about how to convert simple HTML to PDF using Swift. Illustration: Writing and Maintaining Good Code Documentation DEVELOPMENT iOS macOS Swift Objective-C Tips Writing and Maintaining Good Code Documentation Tips, tricks, and techniques for documenting your code the correct way. Illustration: Creating a PDF in Swift Using PDFKit TUTORIALS iOS Swift How To Creating a PDF in Swift Using PDFKit How to create and customize a PDF in Swift using PDFKit. Illustration: Converting an Attributed String to a PDF TUTORIALS iOS Swift Objective-C How To Converting an Attributed String to a PDF How to convert a string with formatting to a PDF.

2018

Illustration: Self-Sizing Table View Cells in Practice DEVELOPMENT iOS Swift Objective-C Insights Self-Sizing Table View Cells in Practice A look at self-sizing table view cells for apps supporting iOS 10, 11, and 12, covering three implementation approaches and some pitfalls I encountered supporting these across our UI in PSPDFKit. Illustration: Search and Redact Text in Swift TUTORIALS iOS Swift How To Search and Redact Text in Swift How to search and redact text using Swift and PSPDFKit for iOS. Illustration: Tips and Tricks for Contributing to the Swift Language DEVELOPMENT iOS Swift C++ Open Source Tips Tips and Tricks for Contributing to the Swift Language This post describes the process for contributing code to the Swift programming language, including how to propose changes to the language, write a pull request, address feedback, and make your code part of the next version of the language. Illustration: Using Signposts for Performance Tuning on iOS DEVELOPMENT iOS Swift Objective-C Performance Using Signposts for Performance Tuning on iOS A look at the different ways that we measure and try to improve performance at PSPDFKit. Illustration: Smart Grid Sizing DEVELOPMENT iOS Swift Insights Smart Grid Sizing How PSPDFKit is smart about choosing thumbnail sizes. Illustration: Exporting Images from PDF with PSPDFKit for macOS TUTORIALS macOS Swift How To PDF Exporting Images from PDF with PSPDFKit for macOS We'll look at how a simple Swift script and PSPDFKit for macOS can be used to export image assets for your website or app from a vector PDF graphic, using an iOS app icon as an example. Illustration: First-Class Swift API for Objective-C Frameworks PRODUCTS iOS Swift First-Class Swift API for Objective-C Frameworks Objective-C and Swift interoperability with PSPDFKitSwift Illustration: Ways to Create a PDF on iOS TUTORIALS iOS Swift How To PDF Ways to Create a PDF on iOS We look at the different ways of creating a PDF on iOS. Illustration: Binary Frameworks in Swift DEVELOPMENT iOS Swift Insights Binary Frameworks in Swift ABI? Module stability? What does binary stability mean, and how will it affect you?

2017

2016