Skip to content

Commit

Permalink
API visibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psharanda committed May 9, 2016
1 parent 18c669d commit 72f8eb6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Atributika/Atributika/Atributika.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,21 +135,21 @@ public enum Attribute {
}

public struct TagInfo : Equatable {
let name: String
let attributes: [String: String]
var range: Range<Int>
public let name: String
public let attributes: [String: String]
public var range: Range<Int>
}

public func ==(lhs: TagInfo, rhs: TagInfo) -> Bool {
return lhs.name == rhs.name && lhs.attributes == rhs.attributes && lhs.range == rhs.range
}

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
Expand Down Expand Up @@ -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()
}

Expand Down

0 comments on commit 72f8eb6

Please sign in to comment.