How to get file size using FileManager + formatting
A Swift tutorial on programmatically retrieving and formatting file sizes using FileManager and ByteCountFormatter.
Filip Němeček — iOS developer building apps and tools, with additional work in Python and Django. Shares practical articles, projects, and indie app work.
159 articles from this blog
A Swift tutorial on programmatically retrieving and formatting file sizes using FileManager and ByteCountFormatter.
Tips for improving UIKit layout efficiency using AutoLayout constraints, aspect ratios, and proper view sizing techniques.
Explains why launchOptions is nil in iOS 13's AppDelegate and provides the correct solution using SceneDelegate.
Explains how to properly configure WKWebView for headless background operation in iOS apps, including a key workaround for JavaScript execution.
A Swift programming tutorial on removing duplicate items from an array while preserving the original order, using Set and NSOrderedSet.
A tutorial on adding a custom notification badge with a count to a UIBarButtonItem in iOS, using a UIButton and UILabel.
A guide on implementing the EKCalendarChooser from EventKitUI in Swift to let iOS users select calendars within an app.
A tutorial on implementing a user-friendly feedback feature in iOS apps that allows users to choose their preferred email client (Gmail, Outlook, Spark) instead of defaulting to Apple Mail.
A tutorial on creating reusable custom UIView subclasses in iOS using .XIB files for visual design in Interface Builder.
A tutorial on using iOS's QLPreviewController to display various file types like PDFs, documents, and images within an app.
A tutorial on using iOS's Quick Look framework to generate thumbnail previews for various file types like PDFs, documents, and 3D models.
A guide to advanced string comparison and locale-aware sorting in Swift, covering case-insensitive checks, diacritic removal, and proper ordering.
A developer shares non-sponsored book recommendations for improving iOS development skills, covering Core Data, AutoLayout, and Swift.
A tutorial on using custom UIView to dim app backgrounds and hide sensitive content in the iOS App Switcher.
A Swift tutorial on saving and reading files from a user's iCloud Drive using FileManager and CloudKit in an iOS app.
A tutorial on implementing a modern swipe-to-delete action with a custom trash icon in an iOS TableView using trailingSwipeActionsConfiguration.
A guide on using EKEventEditViewController in Swift to let users save events to the iOS system calendar, covering setup, permissions, and delegate handling.
Advanced Swift tips for cleaner code: optional unwrapping, range checking, randomness, and @autoclosure usage.
Explains how to fix broken target="_blank" links in iOS WKWebView by implementing a specific WKUIDelegate method.