From 042ed7f551d1994079005d5af46a90bcc94f6d60 Mon Sep 17 00:00:00 2001 From: Ovi Trif Date: Wed, 17 Nov 2021 21:02:44 +0100 Subject: [PATCH 1/2] Show a notice when switching editor mode in gutenberg --- .../ViewRelated/Gutenberg/GutenbergViewController.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift b/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift index 3c15b46ba29e..48275def32e9 100644 --- a/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift +++ b/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift @@ -465,6 +465,14 @@ class GutenbergViewController: UIViewController, PostEditor, FeaturedImageDelega gutenberg.toggleHTMLMode() mode.toggle() editorSession.switch(editor: analyticsEditor) + presentEditingModeSwitchedNotice() + } + + private func presentEditingModeSwitchedNotice() { + let message = mode == .html + ? NSLocalizedString("Switched to HTML mode", comment: "Message of the notice shown when toggling the HTML editor mode") + : NSLocalizedString("Switched to Visual mode", comment: "Message of the notice shown when toggling the Visual editor mode") + gutenberg.showNotice(message) } func requestHTML(for reason: RequestHTMLReason) { From 455f601620febac626ad05fdfc81155678b072a9 Mon Sep 17 00:00:00 2001 From: Ovi Trif Date: Mon, 22 Nov 2021 19:46:53 +0100 Subject: [PATCH 2/2] Update release notes --- RELEASE-NOTES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index c67fd0c09c2c..540fc773850f 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -1,5 +1,6 @@ 18.8 ----- +* [*] Editor: Show a compact notice when switching between HTML or Visual mode. [https://github.com/wordpress-mobile/WordPress-iOS/pull/17521] * [***] Fixed crash where uploading image when offline crashes iOS app. [#17488] 18.7