Plot Math Functions With Swift Charts LinePlot
Learn to plot math functions directly with Swift Charts' new LinePlot and AreaPlot APIs in iOS 18, using a normal distribution example.
Trevor — Senior iOS Developer and Swift enthusiast sharing practical tutorials and real-world insights on Swift, SwiftUI, Combine, and iOS app development, with a passion for continuous learning and building high-quality App Store apps.
95 articles from this blog
Learn to plot math functions directly with Swift Charts' new LinePlot and AreaPlot APIs in iOS 18, using a normal distribution example.
Explores new SwiftUI iOS 18 scroll APIs like onScrollGeometryChange and ScrollPosition, replacing old GeometryReader hacks.
Guide to building an iPadOS 18 TabView that adapts into a customizable sidebar using SwiftUI's new .sidebarAdaptable style and Tab/TabSection APIs.
Learn to create custom animated text effects in SwiftUI using TextRenderer, keeping text accessibility and Dynamic Type.
Learn to add iOS 18 zoom navigation transitions to a SwiftUI grid using the ZoomNavigationTransition API.
Learn to build mesh gradients in SwiftUI using the new MeshGradient API available on iOS 18 and later.
A tutorial on building an LRU cache in Swift using a dictionary and doubly linked list for O(1) operations.
A guide to implementing binary search in Swift without off-by-one errors using half-open ranges and four helper functions.
Learn how to build a reusable wrapping chip layout in SwiftUI using the Layout protocol, with code examples and explanations.
Guide to auditing and creating PrivacyInfo.xcprivacy files for required reason APIs in iOS apps.
A SwiftUI tutorial on building an iMessage-style chat input with ScrollView, LazyVStack, and safeAreaInset.
Tutorial on using PhotosPicker in production SwiftUI apps, covering loading, downsampling, and saving user media efficiently.
A guide to debugging Universal Links in SwiftUI, covering entitlements, AASA files, and troubleshooting steps.
Explains the difference between StoreKit 2's Transaction.currentEntitlements and Transaction.updates for managing in-app purchases in iOS apps.
Tutorial on building a custom cached image loader in SwiftUI, addressing AsyncImage's limitations for production apps.
Learn to build a SwiftUI NavigationStack router using enum routes for type-safe, codable navigation in iOS 16+ apps.
Solving the sliding window maximum problem in Swift using a deque data structure from Swift Collections.
A Swift Combine extension to simplify removing nil values from publishers by replacing .compactMap { $0 } with .compactMap().
A guide to automatically incrementing iOS/macOS app build numbers in Xcode using a post-archive run script action.
A guide to synchronizing build numbers and marketing versions across multiple Xcode targets from a single source of truth.