Skip to content

Commit

Permalink
made View properties public
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmoellerch committed Jun 20, 2019
1 parent 663262a commit 95fddc4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Sources/SwiftUIFormattedText/SwiftUIFormattedText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,15 @@ extension Tag {
@available(OSX 10.15, *)
@available(iOS 13.0, *)
public struct FormattedText : View {
var formatted: String
var renderedTag: some View {
public var formatted: String
init(formatted: String) {
self.formatted = formatted
}
public var renderedTag: some View {
let result = Tag.parse(from: formatted).render()
return result
}
var body: some View {
public var body: some View {
VStack {
renderedTag.lineLimit(nil)
}
Expand Down

0 comments on commit 95fddc4

Please sign in to comment.