From c629894611563518f34338e859e9d38469a1321d Mon Sep 17 00:00:00 2001 From: Ilyas Hallak Date: Sun, 26 Oct 2025 21:19:27 +0100 Subject: [PATCH] feat: Show annotations button only when article contains annotations Add conditional visibility for the annotations button in the toolbar based on whether the loaded article contains any rd-annotation tags. Changes: - Add hasAnnotations property to BookmarkDetailViewModel - Check for () @@ -85,8 +86,11 @@ class BookmarkDetailViewModel { let paragraphs = articleContent .components(separatedBy: .newlines) .filter { !$0.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty } - + articleParagraphs = paragraphs + + // Check if article contains annotations + hasAnnotations = articleContent.contains("