From 8006d816a9eb62310d1c1e06523cd97aa26f2058 Mon Sep 17 00:00:00 2001 From: Nate Weaver Date: Thu, 30 Apr 2020 01:21:51 -0500 Subject: [PATCH] Style(tag:) -> Style(forTag:) --- Shared/Extensions/NSAttributedString+NetNewsWire.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shared/Extensions/NSAttributedString+NetNewsWire.swift b/Shared/Extensions/NSAttributedString+NetNewsWire.swift index 56eb7b30c..8a0dc777a 100644 --- a/Shared/Extensions/NSAttributedString+NetNewsWire.swift +++ b/Shared/Extensions/NSAttributedString+NetNewsWire.swift @@ -104,8 +104,8 @@ extension NSAttributedString { case strikethrough case monospace - init?(tag: String) { - switch tag { + init?(forTag: String) { + switch forTag { case "b", "strong": self = .bold case "i", "em", "cite": @@ -174,7 +174,7 @@ extension NSAttributedString { result.mutableString.append(delimiter ?? "\"") } - if let style = Style(tag: tag) { + if let style = Style(forTag: tag) { currentStyles.insert(style) } } else { @@ -184,7 +184,7 @@ extension NSAttributedString { quoteDepth -= 1 } - if let style = Style(tag: tag) { + if let style = Style(forTag: tag) { currentStyles.remove(style) }