2021-10-11
2919
#swift
Mohd Hafiz
70941
Oct 11, 2021 â‹… 10 min read

Getting started with RealmSwift

Mohd Hafiz I've been working in iOS development since 2012 and have been involved in numerous projects with different implementations in terms of UI, Architecture, backend API Integration, and so on. I enjoy exploring new technologies, libraries, and iOS development stuff.

Recent posts:

Understanding The Latest Webkit Features In Safari 17.4

Understanding the latest Webkit features in Safari 17.4

The Safari 17.4 update brought in many modern features and bug fixes. Explore the major development-specific updates you should be aware of.

Rahul Chhodde
May 16, 2024 â‹… 10 min read
Using Webrtc To Implement Peer To Peer Video Streaming In A Node Js Project

Using WebRTC to implement P2P video streaming

Explore one of WebRTC’s major use cases in this step-by-step tutorial: live peer-to-peer audio and video streaming between systems.

Oduah Chigozie
May 16, 2024 â‹… 18 min read
Htmx Vs React

htmx vs. React: Choosing the right library for your project

Both htmx and React provide powerful tools for building web apps, but in different ways that are suited to different types of projects.

Temitope Oyedele
May 15, 2024 â‹… 9 min read
Exploring The Top Pair Programming Tools

Exploring the top 5 pair programming tools

Review the top five pair programming tools, including how to use them, their features, drawbacks, pricing models, and more.

Elijah Asaolu
May 15, 2024 â‹… 8 min read
View all posts

2 Replies to "Getting started with RealmSwift"

  1. This article is full of potential, but it is also full of errors. I am not through the exercise yet, but this is what I have discovered so far.
    1. no need to import Combine for your ViewModel, importing of SwiftUI is fine.
    2. You incorrectly use updatedAt instead of complertedAt when you set up your observer
    3. You fail to ever code the button action in TaskRowView or pass in the EnvironmentObject
    This is really not great so I would recommend that you proof read our article before posting or ask someone else to review as there is a lot of interest in Realm for SwiftUI and your exercise has a lot of potential but I fear that it will turn a lot of people off because it is impossible to complete the project given what you have presented

    1. Hi Stewart,

      Thank you for the great feedbacks. I have made corrections as per you suggestion. However, for #1 I think it is better to use Combine since the component of SwiftUI not using in the view model.

      Again Thanks!

Leave a Reply