@@ -211,6 +211,10 @@ <H4 align="center">
211211< a href ="https://github.com/ra1028/Carbon/blob/master/LICENSE "> < img alt ="Lincense " src ="https://img.shields.io/badge/License-Apache%202.0-black.svg "/> </ a >
212212</ p >
213213
214+ < p align ="center ">
215+ Made with ❤️ by < a href ="https://github.com/ra1028 "> Ryo Aoyama</ a >
216+ </ p >
217+
214218< hr >
215219
216220< table > < thead >
@@ -227,10 +231,6 @@ <H4 align="center">
227231</ tr >
228232</ tbody > </ table >
229233
230- < p align ="right ">
231- Made with ❤️ by < a href ="https://github.com/ra1028 "> Ryo Aoyama</ a >
232- </ p >
233-
234234< hr >
235235< h2 id ='introduction ' class ='heading '> Introduction</ h2 >
236236
@@ -240,7 +240,7 @@ <h2 id='introduction' class='heading'>Introduction</h2>
240240< p > Uses < a href ="https://github.com/ra1028/DifferenceKit "> DifferenceKit</ a > which is highly optimized based on Paul Heckel’s paper for diffing.< br >
241241Declarative design and diffing algorithm make your code more predictable, debugging easier and providing beautiful animations to users. </ p >
242242
243- < p > Our goal is similar to < a href ="https://github.com/Instagram/IGListKit "> IGListKit</ a > and < a href ="https://github.com/airbnb/epoxy "> Epoxy</ a > , we respect those library as pioneers. </ p >
243+ < p > Our goal is similar to < a href ="https://github.com/Instagram/IGListKit "> Instagram/ IGListKit</ a > and < a href ="https://github.com/airbnb/epoxy "> airbnb/ Epoxy</ a > , we respect those library as pioneers. </ p >
244244
245245< hr >
246246< h2 id ='examples ' class ='heading '> Examples</ h2 >
@@ -333,7 +333,7 @@ <h4 id='cellnode' class='heading'>CellNode</h4>
333333
334334< p > < code > < a href ="Structs/CellNode.html "> CellNode</ a > </ code > is a node representing cell.< br >
335335Unlike in the ViewNode, this needs an < code > id</ code > which < code > Hashable</ code > type to identify from among a lot of cells.< br >
336- The < code > id</ code > is used to find the same component in the list data before and after changed, then calculate the following kind of diff. </ p >
336+ The < code > id</ code > is used to find the same component in the list data before and after changed, then calculate the all kind of diff. </ p >
337337
338338< ul >
339339< li > deletes</ li >
@@ -351,7 +351,7 @@ <h4 id='section' class='heading'>Section</h4>
351351
352352< p > < code > < a href ="Structs/Section.html "> Section</ a > </ code > has a header, a footer and a group of cells.< br >
353353A group of cells can be contains nil, then skipped rendering of it cell.< br >
354- This also needs to specify < code > id</ code > for identify from among multiple sections, then can be calculate the several kind of diff. </ p >
354+ This also needs to specify < code > id</ code > for identify from among multiple sections, then can be calculate the all kind of diff. </ p >
355355
356356< ul >
357357< li > section deletes</ li >
@@ -435,6 +435,10 @@ <h4 id='renderer' class='heading'>Renderer</h4>
435435< span class ="p "> )</ span >
436436</ code > </ pre >
437437
438+ < H3 align ="center ">
439+ < a href ="https://ra1028.github.io/Carbon "> [See More Usage]</ a >
440+ </ H3 >
441+
438442< hr >
439443< h2 id ='advanced-guide ' class ='heading '> Advanced Guide</ h2 >
440444< h4 id ='custom-content ' class ='heading '> Custom Content</ h4 >
@@ -559,13 +563,32 @@ <h4 id='component-in-depth' class='heading'>Component in-Depth</h4>
559563< p > < a href ="https://ra1028.github.io/Carbon/Protocols/Component.html "> See more</ a > </ p >
560564< h4 id ='adapter-customization ' class ='heading '> Adapter Customization</ h4 >
561565
562- < p > You can add methods of < code > Delegate</ code > , < code > DataSource</ code > by inheriting each adapter.< br >
563- Furthermore, it can be customized the class of the elements(cell/header/footer) which becomes the container of component by setting it to < code > config</ code > . </ p >
566+ < p > You can add methods of < code > delegate</ code > , < code > dataSource</ code > by subclassing each adapter. </ p >
567+ < pre class ="highlight swift "> < code > < span class ="kd "> class</ span > < span class ="kt "> CustomTableViewdapter</ span > < span class ="p "> :</ span > < span class ="kt "> UITableViewAdapter</ span > < span class ="p "> {</ span >
568+ < span class ="kd "> func</ span > < span class ="nf "> tableView</ span > < span class ="p "> (</ span > < span class ="n "> _</ span > < span class ="nv "> tableView</ span > < span class ="p "> :</ span > < span class ="kt "> UITableView</ span > < span class ="p "> ,</ span > < span class ="n "> titleForHeaderInSection</ span > < span class ="nv "> section</ span > < span class ="p "> :</ span > < span class ="kt "> Int</ span > < span class ="p "> )</ span > < span class ="o "> -></ span > < span class ="kt "> String</ span > < span class ="p "> ?</ span > < span class ="p "> {</ span >
569+ < span class ="k "> return</ span > < span class ="s "> "Header title for section</ span > < span class ="se "> \(</ span > < span class ="n "> section</ span > < span class ="se "> )</ span > < span class ="s "> "</ span >
570+ < span class ="p "> }</ span >
571+ < span class ="p "> }</ span >
572+
573+ < span class ="k "> let</ span > < span class ="nv "> renderer</ span > < span class ="o "> =</ span > < span class ="kt "> Renderer</ span > < span class ="p "> (</ span >
574+ < span class ="nv "> adapter</ span > < span class ="p "> :</ span > < span class ="kt "> CustomTableViewdapter</ span > < span class ="p "> (),</ span >
575+ < span class ="nv "> updater</ span > < span class ="p "> :</ span > < span class ="kt "> UITableViewUpdater</ span > < span class ="p "> ()</ span >
576+ < span class ="p "> )</ span >
577+ </ code > </ pre >
578+
579+ < p > Furthermore, it can be customized the class of the elements(cell/header/footer) which becomes the container of component by setting it to < code > config</ code > . </ p >
564580
565581< ul >
566582< li > < strong > config</ strong > < br >
567583The configuration which having the classes of elements. It can be specified only when adapter is initialized.< br > </ li >
568584</ ul >
585+ < pre class ="highlight swift "> < code > < span class ="k "> let</ span > < span class ="nv "> config</ span > < span class ="o "> =</ span > < span class ="kt "> UITableViewAdapter</ span > < span class ="o "> .</ span > < span class ="kt "> Config</ span > < span class ="p "> (</ span >
586+ < span class ="nv "> cellClass</ span > < span class ="p "> :</ span > < span class ="kt "> CustomCell</ span > < span class ="o "> .</ span > < span class ="k "> self</ span > < span class ="p "> ,</ span >
587+ < span class ="nv "> headerViewClass</ span > < span class ="p "> :</ span > < span class ="kt "> CustomHeaderView</ span > < span class ="o "> .</ span > < span class ="k "> self</ span > < span class ="p "> ,</ span >
588+ < span class ="nv "> footerViewClass</ span > < span class ="p "> :</ span > < span class ="kt "> CustomFooterView</ span > < span class ="o "> .</ span > < span class ="k "> self</ span >
589+ < span class ="p "> )</ span >
590+ < span class ="k "> let</ span > < span class ="nv "> adapter</ span > < span class ="o "> =</ span > < span class ="kt "> UITableViewAdapter</ span > < span class ="p "> (</ span > < span class ="nv "> config</ span > < span class ="p "> :</ span > < span class ="n "> config</ span > < span class ="p "> )</ span >
591+ </ code > </ pre >
569592
570593< p > < a href ="https://ra1028.github.io/Carbon/Adapters.html "> See more</ a > </ p >
571594< h4 id ='updater-customization ' class ='heading '> Updater Customization</ h4 >
@@ -627,11 +650,7 @@ <h2 id='installation' class='heading'>Installation</h2>
627650< h3 id ='a-href-https-cocoapods-org-cocoapods-a ' class ='heading '> < a href ="https://cocoapods.org "> CocoaPods</ a > </ h3 >
628651
629652< p > Add the following to your < code > Podfile</ code > :</ p >
630- < pre class ="highlight ruby "> < code > < span class ="n "> use_frameworks!</ span >
631-
632- < span class ="n "> target</ span > < span class ="s1 "> 'TargetName'</ span > < span class ="k "> do</ span >
633- < span class ="n "> pod</ span > < span class ="s1 "> 'Carbon'</ span >
634- < span class ="k "> end</ span >
653+ < pre class ="highlight ruby "> < code > < span class ="n "> pod</ span > < span class ="s1 "> 'Carbon'</ span >
635654</ code > </ pre >
636655< h3 id ='a-href-https-github-com-carthage-carthage-carthage-a ' class ='heading '> < a href ="https://github.com/Carthage/Carthage "> Carthage</ a > </ h3 >
637656
0 commit comments