Skip to content

Commit

Permalink
Added documentation to applyDelayedAttributes()
Browse files Browse the repository at this point in the history
  • Loading branch information
mchoe committed Jul 27, 2017
1 parent 612049c commit 5e7ea4f
Show file tree
Hide file tree
Showing 133 changed files with 428 additions and 354 deletions.
6 changes: 6 additions & 0 deletions SwiftSVG/SVG/Attributes/DelaysApplyingAttributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,14 @@ public protocol DelaysApplyingAttributes {
var delayedAttributes: [String : String] { get set }
}

/**
An extension that applies and saved and supported attributes
*/
extension DelaysApplyingAttributes where Self : SVGElement {

/**
Applies any saved and supported attributes
*/
func applyDelayedAttributes() {
for (attribute, value) in self.delayedAttributes {
guard let closure = self.supportedAttributes[attribute] else {
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<a class="header-link" href="index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/NSXMLSVGParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/SVGCache.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/SVGCircle.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/SVGEllipse.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
12 changes: 6 additions & 6 deletions docs/Classes/SVGGroup.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -286,9 +286,9 @@ <h1>SVGGroup</h1>
<li class="item">
<div>
<code>
<a name="/s:vC8SwiftSVG8SVGGroup17attributesToApplyGVs10DictionarySSSS_"></a>
<a name="//apple_ref/swift/Property/attributesToApply" class="dashAnchor"></a>
<a class="token" href="#/s:vC8SwiftSVG8SVGGroup17attributesToApplyGVs10DictionarySSSS_">attributesToApply</a>
<a name="/s:vC8SwiftSVG8SVGGroup17delayedAttributesGVs10DictionarySSSS_"></a>
<a name="//apple_ref/swift/Property/delayedAttributes" class="dashAnchor"></a>
<a class="token" href="#/s:vC8SwiftSVG8SVGGroup17delayedAttributesGVs10DictionarySSSS_">delayedAttributes</a>
</code>
</div>
<div class="height-container">
Expand All @@ -303,7 +303,7 @@ <h1>SVGGroup</h1>
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="kd">internal</span> <span class="k">var</span> <span class="nv">attributesToApply</span> <span class="o">=</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">String</span><span class="p">]()</span></code></pre>
<pre class="highlight"><code><span class="kd">internal</span> <span class="k">var</span> <span class="nv">delayedAttributes</span> <span class="o">=</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">String</span><span class="p">]()</span></code></pre>

</div>
</div>
Expand Down Expand Up @@ -350,7 +350,7 @@ <h4>Declaration</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>The function that is called after all of this group&rsquo;s subelements have been processed. It will apply all stored <code><a href="../Classes/SVGGroup.html#/s:vC8SwiftSVG8SVGGroup17attributesToApplyGVs10DictionarySSSS_">attributesToApply</a></code> on all sublayers</p>
<p>The function that is called after all of this group&rsquo;s subelements have been processed. It will apply all stored <code><a href="../Classes/SVGGroup.html#/s:vC8SwiftSVG8SVGGroup17delayedAttributesGVs10DictionarySSSS_">delayedAttributes</a></code> on all sublayers</p>

</div>
<div class="declaration">
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/SVGLayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/SVGLine.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
10 changes: 5 additions & 5 deletions docs/Classes/SVGPath.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -286,9 +286,9 @@ <h1>SVGPath</h1>
<li class="item">
<div>
<code>
<a name="/s:vC8SwiftSVG7SVGPath17attributesToApplyGVs10DictionarySSSS_"></a>
<a name="//apple_ref/swift/Property/attributesToApply" class="dashAnchor"></a>
<a class="token" href="#/s:vC8SwiftSVG7SVGPath17attributesToApplyGVs10DictionarySSSS_">attributesToApply</a>
<a name="/s:vC8SwiftSVG7SVGPath17delayedAttributesGVs10DictionarySSSS_"></a>
<a name="//apple_ref/swift/Property/delayedAttributes" class="dashAnchor"></a>
<a class="token" href="#/s:vC8SwiftSVG7SVGPath17delayedAttributesGVs10DictionarySSSS_">delayedAttributes</a>
</code>
</div>
<div class="height-container">
Expand All @@ -303,7 +303,7 @@ <h1>SVGPath</h1>
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight"><code><span class="k">var</span> <span class="nv">attributesToApply</span> <span class="o">=</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">String</span><span class="p">]()</span></code></pre>
<pre class="highlight"><code><span class="k">var</span> <span class="nv">delayedAttributes</span> <span class="o">=</span> <span class="p">[</span><span class="kt">String</span> <span class="p">:</span> <span class="kt">String</span><span class="p">]()</span></code></pre>

</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/SVGRectangle.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/SVGView.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Enums.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<a class="header-link" href="index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<a class="header-link" href="index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/BinaryFloatingPoint.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/CALayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/CAShapeLayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/CGFloat.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/Dictionary.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/DispatchQueue.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/Double.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/Float.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/FloatingPoint.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/String.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/UIBezierPath.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/UIColor.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions/UIView.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SwiftSVG Docs
</a>
(84% documented)
(85% documented)
</p>

<p class="header-col--secondary">
Expand Down
Loading

0 comments on commit 5e7ea4f

Please sign in to comment.