From 72f8eb6ebd4341c8c8272be38a3508a490396a8f Mon Sep 17 00:00:00 2001 From: Pavel Sharanda Date: Mon, 9 May 2016 10:14:38 +0300 Subject: [PATCH] API visibility fix --- Atributika/Atributika/Atributika.swift | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Atributika/Atributika/Atributika.swift b/Atributika/Atributika/Atributika.swift index 7882cc2..85d0268 100644 --- a/Atributika/Atributika/Atributika.swift +++ b/Atributika/Atributika/Atributika.swift @@ -135,9 +135,9 @@ public enum Attribute { } public struct TagInfo : Equatable { - let name: String - let attributes: [String: String] - var range: Range + public let name: String + public let attributes: [String: String] + public var range: Range } public func ==(lhs: TagInfo, rhs: TagInfo) -> Bool { @@ -145,11 +145,11 @@ public func ==(lhs: TagInfo, rhs: TagInfo) -> Bool { } public struct Atributika { - let text: String - let tags: [String: [Attribute]] - let baseAttributes: [Attribute] + public let text: String + public let tags: [String: [Attribute]] + public let baseAttributes: [Attribute] - init(text: String, tags: [String: [Attribute]] = [:], baseAttributes: [Attribute] = []) { + public init(text: String, tags: [String: [Attribute]] = [:], baseAttributes: [Attribute] = []) { self.text = text self.tags = tags self.baseAttributes = baseAttributes @@ -181,11 +181,11 @@ public struct Atributika { return (attributedString, tagsInfo) } - func buildAttributedString() -> NSAttributedString { + public func buildAttributedString() -> NSAttributedString { return buildAttributedStringInternal().0 } - func buildAttributedStringAndTagsInfo() -> (NSAttributedString, [TagInfo]) { + public func buildAttributedStringAndTagsInfo() -> (NSAttributedString, [TagInfo]) { return buildAttributedStringInternal() }