From f4d066c8f4f27e401729fa24382004b1167dc4c7 Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Tue, 7 Feb 2023 09:38:27 +0100 Subject: [PATCH] chore(Widget): Add comment regarding LatestFollowersEntryAccountable.noteWithoutHtmlTags --- .../Variants/LatestFollowers/LatestFollowersWidgetView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WidgetExtension/Variants/LatestFollowers/LatestFollowersWidgetView.swift b/WidgetExtension/Variants/LatestFollowers/LatestFollowersWidgetView.swift index d1f0493a5..3bdc38a77 100644 --- a/WidgetExtension/Variants/LatestFollowers/LatestFollowersWidgetView.swift +++ b/WidgetExtension/Variants/LatestFollowers/LatestFollowersWidgetView.swift @@ -126,6 +126,10 @@ struct LatestFollowersWidgetView: View { } } +/// This code is used to strip HTML tags from the bio description as the widgets currently dont support +/// rich text rendering due to the lack of SwiftUI-only components for this purpose. +/// todo: Implement rich text rendering for bio description and remove this code +/// https://github.com/mastodon/mastodon-ios/issues/921 private extension LatestFollowersEntryAccountable { var noteWithoutHtmlTags: String? { do {