From 8b38438f178c7220424626141d51158cffa92d4f Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Tue, 28 Sep 2021 15:41:11 +0100 Subject: [PATCH] Make HBMustacheParent public --- Sources/HummingbirdMustache/Parent.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/HummingbirdMustache/Parent.swift b/Sources/HummingbirdMustache/Parent.swift index 0a49fb0..2d597a4 100644 --- a/Sources/HummingbirdMustache/Parent.swift +++ b/Sources/HummingbirdMustache/Parent.swift @@ -14,12 +14,12 @@ /// Protocol for object that has a custom method for accessing their children, instead /// of using Mirror -protocol HBMustacheParent { +public protocol HBMustacheParent { func child(named: String) -> Any? } /// Extend dictionary where the key is a string so that it uses the key values to access /// it values extension Dictionary: HBMustacheParent where Key == String { - func child(named: String) -> Any? { return self[named] } + public func child(named: String) -> Any? { return self[named] } }