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:

Vue logo over a brown background.

A guide to two-way binding in Vue

Learn how to implement one-way and two-way data binding in Vue.js, using v-model and advanced techniques like defineModel for better apps.

David Omotayo
Nov 22, 2024 â‹… 10 min read
TypeScript logo over a pink and white background.

Drizzle vs. Prisma: Which ORM is best for your project?

Compare Prisma and Drizzle ORMs to learn their differences, strengths, and weaknesses for data access and migrations.

Temitope Oyedele
Nov 21, 2024 â‹… 10 min read
Practical Implementation Of The Rule Of Least Power For Developers

Practical implementation of the Rule of Least Power for developers

It’s easy for devs to default to JavaScript to fix every problem. Let’s use the RoLP to find simpler alternatives with HTML and CSS.

Timonwa Akintokun
Nov 21, 2024 â‹… 8 min read
Rust logo over black marble background.

Handling memory leaks in Rust

Learn how to manage memory leaks in Rust, avoid unsafe behavior, and use tools like weak references to ensure efficient programs.

Ukeje Goodness
Nov 20, 2024 â‹… 4 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