Example project showing Compositional Layout and Diffable
Check out my GitHub project for hand-on examples showcasing how to build various layouts using modern APIs.
Swift & iOSI am primarily an iOS developer but I also create stuff with Python & Django. Feel free to reach out over at Twitter.
Check out my GitHub project for hand-on examples showcasing how to build various layouts using modern APIs.
Swift & iOSLet's build the profile page with avatar, followers count, highlights and photos.
Swift & iOSThese can help you add a bit of visual flair or maybe imitate the inset table view style.
Swift & iOSIn this post I would like to show a few approaches that make working with Diffable cleaner and better.
Swift & iOSIn this post we will see how to add badges to CollectionView cells with new APIs available since iOS 13.
Swift & iOSSomewhat by accident I discovered that my blog posts appeared in popular newsletters.
NotableWith the NSCollectionLayoutGroup definition we can create quite different layouts while keeping the rest of the code the same.
Swift & iOSThe easiest way to have local instance of PostgreSQL on your macOS system available for your Django projects.
DjangoA short look at the CNContactPickerViewController from the ContactsUI framework.
Swift & iOSIf you are working with either calendar events or reminders via EventKit framework, you need keep the data up-to-date with the system calendar database.
Swift & iOSAll that is needed is correctly configured section with associated value.
Swift & iOSLetting your users send you feedback just got significantly easier with iOS 14. Let's see how.
Swift & iOSQuick look on one way how to implement loading state for your collection view or table view when using diffable.
Swift & iOSThis post is intended for newcomers to the development on Apple platforms. Since Core Data will undoubtedly feel daunting for a lot of new developers, I decided to try to explain it in simpler terms.
Swift & iOSTurns out Django offers great way to truncate text. Lets see how to use the built-in util Truncator.
DjangoLearn how and why you can make your app's Documents folder accessible via Files app in iOS. And also how to write files into the Application Support directory.
Swift & iOSUnderstanding the basic building blocks of the great compositional layout for collection views.
Swift & iOSTips and approaches to use when you don't have the time to build iPad version from scratch.
Swift & iOSI think I have a new favorite iOS app. Editing videos with LumaFusion is great experience.
SoftwareAnd once again I was left a bit speechless.
NotableTurns out it is pretty easy change to make with potential benefits for your users.
Swift & iOSDetailed look at two possible approaches to avoid writing boiler plate code over and over.
Swift & iOSSome tips and approaches how to tackle difficult problems. Including examples from my Chill Zones app.
Swift & iOSLexi is great little helper for working with JSON. Especially if you are dealing with complex JSON that has a lot of nesting.
SoftwareThis post details how I solved displaying random banner on this very site. The solution does not have any prerequisites.
DjangoApart from reminders and events, EventKit framework also gives you the power to create new calendars for users. Let's see how.
Swift & iOSThe new Diffable Data Source is totally different way to setup Table Views and Collection Views. This example will get you started.
Swift & iOSStart a dev blog is not easy. I hope these tips may help on the journey.
MetaThis is useful if you want to split your app into modules but still keep and manage only single database inside the main target.
Swift & iOSThis post details how I set up Core Data in my projects and also explains what and why. It includes working with background context.
Swift & iOSMy finished solution to bridging this view controller for creating new events and editing existing ones to SwiftUI.
Swift & iOSShort post showing how to bridge this controller with SwiftUI and get selected calendars.
Swift & iOSThe basics of getting OCR up and running plus a few tips and extra stuff you may want to know.
Swift & iOSSince settings.py is just an ordinary Python file we can use simple `if else` block.
DjangoShort post about rendering for example 1/4, 1/2 and other fractions in your Django template. Turns out this is not complicated if you know about important parts to combine.
DjangoCreate reminders in the Reminders app from Swift code with not that much code. Let's see how.
Swift & iOSThis looks like an ideal solution if you want to let user pick multiple colors.
Swift & iOSPresenting my solution which I arrived at with trial & error in hopes it could save time to someone.
DjangoJavaScript sandboxing. Support for JS promises, find on page and more!
Swift & iOSCloudKit subscription offer best way to keep data up-to-date for your user. I will show you the simplest setup to get started.
Swift & iOSMuch better experience. No permissions required and multi-select!
Swift & iOSSuper easy to setup and work with but with limited customization options.
Swift & iOSIn this post we will use the EventKit framework to save event into user's default calendar.
Swift & iOSBetter localization, replacement for NSAttributedString, improved querying with Core Data and more.
Swift & iOSThanks to VisionKit framework scanning documents is very easy with iOS 13 and up. In this blog post I will show you how.
Swift & iOSI am writing this guide for myself and for other developers exploring tvOS in hope of saving them a lot of frustration.
tvOSIn this post let's go over how to load events that user has in their system calendar.
Swift & iOSMy solution for account registration with DRF.
DjangoTurns out getting the byte size is quite quick. This post also shows how to use ByteCountFormatter to transform byte count into human-readable string.
Swift & iOSA collection of tips that I found very helpful when building UI and why to avoid Table View Controller.
Swift & iOSlaunchOptions have moved and you find them in AppDelegate no longer.
Swift & iOSThis is another short post about using `WKWebView`. Yet another useful use case can be to run `WKWebView` in the background, meaning user does not see it on the screen.
Swift & iOSRemoving duplicates is swift in Swift thanks to the Set type. We can also leverage NSOrderedSet to not lose order of the items.
Swift & iOSBadges on UIBarButtonItem are not natively supported but we can fix that with custom UILabel.
Swift & iOSLeverage EventKitUI to let user select from their calendars.
Swift & iOSDon't force your users to use Apple Mail. Offer them Outlook, Gmail or Spark.
Swift & iOSCreate cleaner project by leveraging reusable views with design done in .XIB files.
Swift & iOSShort guide demonstrating how to use QLPreviewController for easy file previews. It even supports ARKit models!
Swift & iOSCreating previews for files is breeze thanks to Quick Look framework. This quick guide will get you started.
Swift & iOSGoing beyond standard contains() and hasPrefix() methods. Post explains locale-aware sorting and how to ignore diacritics.
Swift & iOSI have selected a few books from many I have read and wrote up why I think these are great choices for iOS developers.
Swift & iOSHide sensitive information when the app is visible in the app switcher or just prepare something cool for the users.
Swift & iOSUsing Base64 might be useful in some scenarios.
DjangoMy solution I decided to write up to have reference in the future.
DjangoFor my app Scan it I needed a way to save files into iCloud Drive and decided to share what I learned.
Swift & iOSUse trash icon (or any other image) instead of the standard "Delete" text.
Swift & iOSI needed to preserver order of table elements and decided to share my solution.
DjangoShort example showcasing the usage of EKEventEditViewController to let user edit and add events to iOS calendar.
Swift & iOSMy first ever post about Swift! Unwrapping optionals in a loop, @autoclosures, cleaner range checking and easy randomness.
Swift & iOSShort post explaining why by default _blank links don't do anything and how to fix it with example code.
Swift & iOS