11981198 < nav >
11991199 < div class ="wrapper ">
12001200 < h2 > On This Page</ h2 >
1201- < ol > < li > < a href ="#relationships "> Relationships</ a > < ul > < li > < a href ="#relationships "> Conforms To</ a > </ li > </ ul > </ li > < li > < a href ="#initializers "> Initializers</ a > < ul > < li class ="initializer "> < a href ="#animation.init(tween:) "> init(tween:)</ a > </ li > </ ul > </ li > < li > < a href ="#properties "> Properties</ a > < ul > < li class ="property "> < a href ="#animation.iscompleted "> isCompleted</ a > </ li > </ ul > </ li > < li > < a href ="#methods "> Methods</ a > < ul > < li class ="method "> < a href ="#animation.terminate() "> terminate()</ a > </ li > < li class ="method "> < a href ="#animation.pause() "> pause()</ a > </ li > < li class ="method "> < a href ="#animation.play() "> play()</ a > </ li > < li class ="method "> < a href ="#animation.==(lhs:rhs:) "> ==(lhs:rhs:)</ a > </ li > </ ul > </ li > </ ol >
1201+ < ol > < li > < a href ="#relationships "> Relationships</ a > < ul > < li > < a href ="#relationships "> Conforms To</ a > </ li > </ ul > </ li > < li > < a href ="#initializers "> Initializers</ a > < ul > < li class ="initializer "> < a href ="#animation.init(tween:) "> init(tween:)</ a > </ li > </ ul > </ li > < li > < a href ="#properties "> Properties</ a > < ul > < li class ="property "> < a href ="#animation.loop "> loop</ a > </ li > < li class ="property "> < a href ="#animation.reverse "> reverse</ a > </ li > < li class ="property "> < a href ="#animation.iscompleted "> isCompleted</ a > </ li > < li class ="property "> < a href ="#animation.ispaused "> isPaused</ a > </ li > < li class ="property "> < a href ="#animation.isplaying "> isPlaying</ a > </ li > < li class ="property "> < a href ="#animation.isqueued "> isQueued</ a > </ li > < li class ="property "> < a href ="#animation.inverse "> inverse</ a > </ li > </ ul > </ li > < li > < a href ="#methods "> Methods</ a > < ul > < li class ="method "> < a href ="#animation.terminate() "> terminate()</ a > </ li > < li class ="method "> < a href ="#animation.pause() "> pause()</ a > </ li > < li class ="method "> < a href ="#animation.play() "> play()</ a > </ li > < li class ="method "> < a href ="#animation.restart() "> restart()</ a > </ li > < li class ="method "> < a href ="#animation.==(lhs:rhs:) "> ==(lhs:rhs:)</ a > </ li > </ ul > </ li > </ ol >
12021202 </ div >
12031203 </ nav >
12041204
@@ -1210,6 +1210,10 @@ <h1>
12101210</ h1 >
12111211
12121212< html > < body > < pre class ="highlight "> < code > < span class ="keyword "> public</ span > < span class ="keyword "> class</ span > < span class ="type "> Animation</ span > : < span class ="type "> Equatable</ span > </ code > </ pre > </ body > </ html >
1213+ < div class ="summary " role ="doc-abstract ">
1214+ < p > An 'Animation' is used to animate elements using the 'AnimationManager'.</ p >
1215+
1216+ </ div >
12131217< section id ="relationships ">
12141218 < h2 hidden > Relationships</ h2 >
12151219
@@ -1226,16 +1230,107 @@ <h3>
12261230 < code > init(tween:)</ code >
12271231 </ h3 >
12281232 < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> public</ span > < span class ="keyword "> init</ span > (< span class ="variable "> tween</ span > : < a href ="TweenProtocol "> < span class ="type "> TweenProtocol</ span > </ a > )</ code > </ pre > </ body > </ html >
1233+ < div class ="summary " role ="doc-abstract ">
1234+ < p > Creates a new 'Animation' from the specified 'Tween'</ p >
1235+
1236+ </ div >
1237+ < h4 > Parameters</ h4 >
1238+
1239+ < table class ="parameters ">
1240+ < thead hidden >
1241+ < tr >
1242+ < th > Name</ th >
1243+ < th > Type</ th >
1244+ < th > Description</ th >
1245+ </ tr >
1246+ </ thead >
1247+ < tbody >
1248+ < tr >
1249+ < th > tween</ th >
1250+ < td > < code class ="type "> TweenProtocol</ code > </ td > </ td >
1251+ < td > < p > The 'Tween'</ p >
1252+ </ td >
1253+ </ tr >
1254+ </ tbody >
1255+ </ table >
12291256</ div >
12301257 </ section >
12311258 < section id ="properties ">
12321259 < h2 > Properties</ h2 >
12331260
1234- < div role ="article " class ="class " id ="animation.iscompleted ">
1261+ < div role ="article " class ="class " id ="animation.loop ">
1262+ < h3 >
1263+ < code > loop</ code >
1264+ </ h3 >
1265+ < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> var</ span > < span class ="variable "> loop</ span > </ code > </ pre > </ body > </ html >
1266+ < div class ="summary " role ="doc-abstract ">
1267+ < p > Specifies whether or not to loop the animation over and over again until 'terminate()' is called.</ p >
1268+
1269+ </ div >
1270+ </ div >
1271+ < div role ="article " class ="class " id ="animation.reverse ">
1272+ < h3 >
1273+ < code > reverse</ code >
1274+ </ h3 >
1275+ < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> var</ span > < span class ="variable "> reverse</ span > </ code > </ pre > </ body > </ html >
1276+ < div class ="summary " role ="doc-abstract ">
1277+ < p > Specifies whether or not to reverse the animation after the animation is completete.</ p >
1278+
1279+ </ div >
1280+ </ div >
1281+ < div role ="article " class ="class " id ="animation.iscompleted ">
12351282 < h3 >
12361283 < code > isCompleted</ code >
12371284 </ h3 >
12381285 < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> var</ span > < span class ="variable "> isCompleted</ span > : < span class ="type "> Bool</ span > </ code > </ pre > </ body > </ html >
1286+ < div class ="summary " role ="doc-abstract ">
1287+ < p > returns true if the animation was completed or cancelled</ p >
1288+
1289+ </ div >
1290+ < div class ="discussion ">
1291+ < html > < body > < p > NB: will only return true for one frame when animation is completed</ p >
1292+ </ body > </ html >
1293+ </ div >
1294+ </ div >
1295+ < div role ="article " class ="class " id ="animation.ispaused ">
1296+ < h3 >
1297+ < code > isPaused</ code >
1298+ </ h3 >
1299+ < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> var</ span > < span class ="variable "> isPaused</ span > : < span class ="type "> Bool</ span > </ code > </ pre > </ body > </ html >
1300+ < div class ="summary " role ="doc-abstract ">
1301+ < p > returns true if the animation is currently paused</ p >
1302+
1303+ </ div >
1304+ </ div >
1305+ < div role ="article " class ="class " id ="animation.isplaying ">
1306+ < h3 >
1307+ < code > isPlaying</ code >
1308+ </ h3 >
1309+ < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> var</ span > < span class ="variable "> isPlaying</ span > : < span class ="type "> Bool</ span > </ code > </ pre > </ body > </ html >
1310+ < div class ="summary " role ="doc-abstract ">
1311+ < p > returns true if the animation is currently playing</ p >
1312+
1313+ </ div >
1314+ </ div >
1315+ < div role ="article " class ="class " id ="animation.isqueued ">
1316+ < h3 >
1317+ < code > isQueued</ code >
1318+ </ h3 >
1319+ < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> var</ span > < span class ="variable "> isQueued</ span > : < span class ="type "> Bool</ span > </ code > </ pre > </ body > </ html >
1320+ < div class ="summary " role ="doc-abstract ">
1321+ < p > returns true if the animation isPlaying, isPaused, or isCompleted.</ p >
1322+
1323+ </ div >
1324+ </ div >
1325+ < div role ="article " class ="class " id ="animation.inverse ">
1326+ < h3 >
1327+ < code > inverse</ code >
1328+ </ h3 >
1329+ < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> var</ span > < span class ="variable "> inverse</ span > : < a href ="Animation "> < span class ="type "> Animation</ span > </ a > </ code > </ pre > </ body > </ html >
1330+ < div class ="summary " role ="doc-abstract ">
1331+ < p > returns the inverted version of the animation ie. the 'EasingStyle' is inverted and the start and end values are swapped.</ p >
1332+
1333+ </ div >
12391334</ div >
12401335 </ section >
12411336 < section id ="methods ">
@@ -1246,24 +1341,54 @@ <h3>
12461341 < code > terminate()</ code >
12471342 </ h3 >
12481343 < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> public</ span > < span class ="keyword "> func</ span > < span class ="function "> terminate</ span > ()</ code > </ pre > </ body > </ html >
1344+ < div class ="summary " role ="doc-abstract ">
1345+ < p > Stops the animation and removes it from the 'AnimationManager'</ p >
1346+
1347+ </ div >
12491348</ div >
12501349< div role ="article " class ="class " id ="animation.pause() ">
12511350 < h3 >
12521351 < code > pause()</ code >
12531352 </ h3 >
12541353 < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> public</ span > < span class ="keyword "> func</ span > < span class ="function "> pause</ span > ()</ code > </ pre > </ body > </ html >
1354+ < div class ="summary " role ="doc-abstract ">
1355+ < p > Pauses the animation</ p >
1356+
1357+ </ div >
12551358</ div >
12561359< div role ="article " class ="class " id ="animation.play() ">
12571360 < h3 >
12581361 < code > play()</ code >
12591362 </ h3 >
12601363 < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> public</ span > < span class ="keyword "> func</ span > < span class ="function "> play</ span > ()</ code > </ pre > </ body > </ html >
1364+ < div class ="summary " role ="doc-abstract ">
1365+ < p > Plays the animation</ p >
1366+
1367+ </ div >
1368+ < div class ="discussion ">
1369+ < html > < body > < p > NB: Only plays if already added to 'AnimationManager'</ p >
1370+ </ body > </ html >
1371+ </ div >
1372+ </ div >
1373+ < div role ="article " class ="class " id ="animation.restart() ">
1374+ < h3 >
1375+ < code > restart()</ code >
1376+ </ h3 >
1377+ < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> public</ span > < span class ="keyword "> func</ span > < span class ="function "> restart</ span > ()</ code > </ pre > </ body > </ html >
1378+ < div class ="summary " role ="doc-abstract ">
1379+ < p > Restarts the animation to the initial value as specified in the 'Tween'.</ p >
1380+
1381+ </ div >
12611382</ div >
12621383< div role ="article " class ="class " id ="animation.==(lhs:rhs:) ">
12631384 < h3 >
12641385 < code > ==(lhs:rhs:)</ code >
12651386 </ h3 >
12661387 < html > < body > < pre class ="highlight "> < code > < span class ="keyword "> static</ span > < span class ="keyword "> public</ span > < span class ="keyword "> func</ span > ==(< span class ="variable "> lhs</ span > : < a href ="Animation "> < span class ="type "> Animation</ span > </ a > , < span class ="variable "> rhs</ span > : < a href ="Animation "> < span class ="type "> Animation</ span > </ a > ) -> < span class ="type "> Bool</ span > </ code > </ pre > </ body > </ html >
1388+ < div class ="summary " role ="doc-abstract ">
1389+ < p > Equivalence operator for two 'Animation's.</ p >
1390+
1391+ </ div >
12671392</ div >
12681393 </ section >
12691394
@@ -1274,7 +1399,7 @@ <h3>
12741399
12751400 < footer >
12761401 < p >
1277- Generated on < time datetime ="2020-04-23T10:04:15 -0500 "> April 23 , 2020</ time > using < a href ="https://github.com/SwiftDocOrg/swift-doc "> swift-doc</ a > .
1402+ Generated on < time datetime ="2020-04-29T20:23:08 -0500 "> April 29 , 2020</ time > using < a href ="https://github.com/SwiftDocOrg/swift-doc "> swift-doc</ a > .
12781403</ p >
12791404 </ footer >
12801405</ body >
0 commit comments