DevelopmentCoreGraphics Geometry Primitives
The article provides a concise guide to Core Graphics geometry types in Swift, essential for Quartz 2D drawing on Apple platforms, covering CGFloat, CGPoint, CGVector, CGSize, and CGRect, with iOS using a top-left origin and macOS a bottom-left origin by default.
DevelopmentGuided Access
Guided Access, introduced in iOS 6, is an accessibility feature that locks an iOS app to prevent unintended exits, configurable to disable specific screen regions, hardware buttons, motion, keyboards, touch, or set time limits, activated via triple-clicking the Home/Side button or Siri.
DevelopmentSwift 5 Released!
Swift 5.0 marks a major milestone with ABI stability on Apple platforms, integrating the Swift runtime into macOS, iOS, tvOS, and watchOS for smaller apps and better performance.
DevelopmentUTF-8 String
Swift 5 changes String's preferred encoding from UTF-16 to UTF-8 for better performance in modern computing, like server-side work and C interop, while keeping efficient Objective-C bridging.
DevelopmentLocalizedError, RecoverableError, CustomNSError
Swift’s error handling works well with Cocoa’s NSError system. Swift 3 added three little-known protocols to make this link even better.
DevelopmentJavaScriptCore
The article explores the JavaScriptCore framework, which integrates WebKit’s JavaScript engine into Swift apps, allowing developers to execute JavaScript code and interoperate with Swift.
DevelopmentBehind the Proposal, SE-0200 Enhancing String Literals Delimiters to Support Raw Text
SE-0200 introduces custom delimiters for Swift string literals in Swift 5, allowing raw text that ignores escape sequences unless adjusted with matching pound signs, blending features from languages like Rust while retaining Swift's interpolation.
DevelopmentSwift 5.1 Release Process
Swift 5.1 aims to achieve module stability for the language. On Apple platforms, it keeps binary compatibility with Swift 5.0 and future releases because the ABI is now stable.
DevelopmentEvolving Swift On Apple Platforms After ABI Stability
Swift 5.0 achieves ABI stability on Apple platforms, allowing apps to use the OS-provided Swift runtime instead of bundling it, which reduces download sizes and enables better performance through deeper integration.
DevelopmentABI Stability and More
Swift 5 achieves ABI stability on Apple platforms, ensuring binary compatibility for apps and libraries across future Swift versions without needing to embed the Swift runtime in app bundles.
DevelopmentIntroducing the sourcekitd Stress Tester
Sourcekitd powers essential editor features like code completion and refactoring in Xcode and SourceKit-LSP, handling both syntactic and semantic requests for Swift files.
DevelopmentSwift 5 Exclusivity Enforcement
Swift 5 turns on runtime checks for exclusive access to memory by default in release builds.
DevelopmentDictionary Services
The article explores dictionary-related APIs in Swift across Unix, macOS, and iOS, highlighting their role in features like spell check and semantic analysis.
DevelopmentBundles and Packages
The article clarifies the distinction between bundles and packages on Apple platforms, often confused due to overlapping use cases.
DevelopmentCharacterSet
The article introduces CharacterSet, a Foundation type in Swift for manipulating Unicode scalar values, distinct from Set<Character> despite its name, as it conforms to the SetAlgebra protocol rather than storing Character values directly.
DevelopmentLocale
Internationalisation (i18n) means building your app so it can support many regions and languages. Localisation (l10n) means actually translating and adapting it for a specific market.
DevelopmentFileManager
On Apple platforms, the FileManager class in the Foundation framework provides a robust abstraction for file system operations like creating, reading, moving, copying, and deleting files and directories, using paths or file URLs.
DevelopmentDateComponents
The article introduces DateComponents, a versatile Foundation type in Swift for representing either a specific calendar date or a duration of time, emphasising its use over hardcoded time intervals like 60 * 60 * 24 for a day.
DevelopmentREPL Support for Swift Packages
The swift run command now includes a --repl option. This lets you start the Swift REPL and import library targets from a package.
DevelopmentHow Mirror Works
Swift provides runtime type inspection through the Mirror API. This allows developers to examine arbitrary values and traverse object graphs without prior knowledge of types at compile time.
DevelopmentSwift 5.0 Release Process
Swift 5.0 aims to achieve ABI stability to enable a stable runtime for operating systems, with module stability as a key focus that may land in this release or a later 5.x update.
DevelopmentSwift 4.2 Released!
Swift 4.2 is a major update that enhances compile times, debugging, the standard library, and moves closer to binary compatibility, while maintaining source compatibility with Swift 4 and 4.1 but marking the last release to support Swift 3 compatibility.
DevelopmentCMDeviceMotion
The Core Motion framework in Swift simplifies access to iOS and watchOS device sensors, enabling innovative user interactions beyond touch by leveraging a dedicated motion coprocessor for efficient accelerometer, gyroscope, and magnetometer data processing.
DevelopmentCMMotionActivity
The Core Motion framework’s CMMotionActivityManager on iOS and watchOS uses a device’s motion coprocessor to process sensor data from accelerometers, gyroscopes, and magnetometers, determining user activities like walking, running, cycling, automotive travel, or being stationary with varying confidence levels.
DevelopmentNSDataDetector
NSDataDetector finds dates, links, phone numbers, addresses, and transit details in natural language text. It is a subclass of NSRegularExpression.