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:

Rxjs Adoption Guide: Overview, Examples, And Alternatives

RxJS adoption guide: Overview, examples, and alternatives

Get to know RxJS features, benefits, and more to help you understand what it is, how it works, and why you should use it.

Emmanuel Odioko
Jul 26, 2024 â‹… 13 min read
Decoupling Monoliths Into Microservices With Feature Flags

Decoupling monoliths into microservices with feature flags

Explore how to effectively break down a monolithic application into microservices using feature flags and Flagsmith.

Kayode Adeniyi
Jul 25, 2024 â‹… 10 min read
Lots of multi-colored blue and purplish rectangles.

Animating dialog and popover elements with CSS @starting-style

Native dialog and popover elements have their own well-defined roles in modern-day frontend web development. Dialog elements are known to […]

Rahul Chhodde
Jul 24, 2024 â‹… 10 min read
Using Llama Index To Add Personal Data To Large Language Models

Using LlamaIndex to add personal data to LLMs

LlamaIndex provides tools for ingesting, processing, and implementing complex query workflows that combine data access with LLM prompting.

Ukeje Goodness
Jul 23, 2024 â‹… 5 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