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:

react native's new architecture: sync and async rendering

React Native’s New Architecture: Sync and async rendering

React Native’s New Architecture offers significant performance advantages. In this article, you’ll explore synchronous and asynchronous rendering in React Native through practical use cases.

Emmanuel John
Dec 24, 2024 â‹… 8 min read
Building a Full-Featured Laravel Admin Dashboard with Filament

Building a full-featured Laravel admin dashboard with Filament

Build scalable admin dashboards with Filament and Laravel using Form Builder, Notifications, and Actions for clean, interactive panels.

Kayode Adeniyi
Dec 20, 2024 â‹… 5 min read
Working With URLs In JavaScript

Working with URLs in JavaScript

Break down the parts of a URL and explore APIs for working with them in JavaScript, parsing them, building query strings, checking their validity, etc.

Joe Attardi
Dec 19, 2024 â‹… 6 min read
Lazy Loading Vs. Eager Loading

Lazy loading vs. Eager loading

In this guide, explore lazy loading and error loading as two techniques for fetching data in React apps.

Njong Emy
Dec 18, 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