Within our app written in Swift and using SwiftUI, we needed a way to read our data from Google Firestore into the app, and then write…
Everything You Need to Know About iOS 14 Widgets.Static vs. dynamic widgets, smart widgets, intent donations, and more
How to Get Out of (or Completely Avoid) the Tutorial Trap. This post comes from my 2.5-year experience in the Tutorial Trap. This is an experience where new programmers continuously complete tutorial after tutorial, but never break out of their comfort zone to build something on their own. It can be scary to stop following the ‘pros’ and try things for yourself — but this is where the real growth happens.
What’s the Difference Between Strong and Weak IBOutlets in Swift?Learn when you should use each one. In this article, we’ll learn the difference between Strong and Weak outlets and will remove any confusion on when to use which.
The Memoirs of Swift: The Enigma called Unit Testing. And Unit testing is that…..” I even once heard that 200 fully armed developers took on this quest centuries ago and not one returned. I then sit and ...
This is the story of a humble App until they met a powerful particle effect that added a so much needed wow! effect.On our XCode project, we create a new Group (with a folder) named particles and we add a SCN file inside.
Reusing all of your app’s business and presentation logic. With SwiftUI receiving a lot of support from Apple and Swift community, more companies are starting to use it in production. However, older projects will have a lot of UIKit code and will want to refactor that to SwiftUI.
Group boxes can be used, to group content together. With SwiftUI 2 they are also available on iOS. A default GroupBox has two possible states. Without a label, the background size depends on the content. With a label, the background pushes to the side.
Generic Data Model with Codable Type Alias. Codeable is a type alias for the Encodable and Decodable protocols. It can be used to Serialize and Deserialize remote web service data for that matter.
Using color with SwiftUI. Did you know that the Apple II, launched in 1977, was the first PC that had colour? It was a lead that Apple somehow dropped with an incomprehensible twenty-year gap before anybody seem to get their act together.
Create animated index views with the new PageTabViewStyle. SwiftUI 2 introduced a new TabView style called PageTabViewStyle that enables developers to easily create horizontal Pagers (aka Paging) ...
Dismiss a ViewController as the user drags their finger.We will first add a PanGestureRecognizer to the view of the View Controller. Add gestureRecognizer in your View Controller. Create a objc handleDismiss function. Created the variable, switch case and the function to handle the translation.
Updated for iOS 14, iPadOS 14, WatchOS 7, and MacOS Big Sur. At the start of 2020, I wrote a long Medium post called The Complete SwiftUI Documentation You've Been Waiting For. This was my way of sharing what I learned when I tried to fill in the gaps left by the insufficient documentation provided by Apple.
In this blog, we have mentioned the most notable announcements made by Apple regarding Features and Release Date at WWDC 2020
The top programming languages you must learn for landing your first job. If you're looking for a job in Web, AI or mobile development, this video is for you.
With SwiftUI 2 you can open URLs with the new Link structure. You can also open URLs in-app with a SFSafariViewController . But maybe you want to give the user the choice, if he wants the link to be opened in-app, in Safari or even in other browsers like Google Chrome, Firefox or Opera.
You can now add resources to your swift packages in Xcode 12. What does it mean?In one of my previous articles, I mentioned how SPM (Swift Package Manager) changed the way I build and maintain my Code. I praised the deep integration Xcode 11 has with Swift Packages and how easy it is to create a tremendous modular Code.You cannot add images, data files, or even a storyboard.
Learn how deep links are handled in the new SwiftUI app life cycle, and discover an elegant way to manage them
Create custom HUDs to display information quickly and not interruptive to the user
Making a user-configurable widget with SiriKit