Upgrade to Pro — share decks privately, control downloads, hide ads and more …

SwiftUI-List-Pagination

mcz9mm
June 18, 2019

 SwiftUI-List-Pagination

Timers Meetup #2 ~WWDC After Party~

Sample Code:
https://github.com/mcz9mm/SwiftUI-List-Pagination

mcz9mm

June 18, 2019
Tweet

More Decks by mcz9mm

Other Decks in Technology

Transcript

  1. SwiftUIͰૣ଎ListPagination Λ࣮૷ͯ͠Έͨ @mcz9mm

  2. #ࣗݾ঺հ

  3. • ຢདྷ ܆ @mcz9mm • Shinonome, inc. • iOSΤϯδχΞ •

    wwdc͸18೥ʹҰ౓ࢀՃ • ࠷ۙ͸Kotlin΋
  4. #SwiftUI

  5. None
  6. ࠃ಺଴ػ੎ͩͬͨͷͰૣ଎ࢼͯ͠·ͨ͠ʂ

  7. #ࠓճ࡞ͬͨ΋ͷ

  8. List Pagination

  9. #demo

  10. #ࠓ·Ͱ

  11. scrollViewDidScroll • Cell͕࠷Լ·ͰεΫϩʔϧͨ͠ࡍʹݕ஌͢Δํ ๏͸͋ͬͨ

  12. ListͰ͸RowͷonApperΛར༻͢Δ
 modelͷlastIndexʹflgΛ࣮࣋ͨͤͯݱ

  13. Indicator͸UIViewRepresentableͰ
 UIKit͔Β࣮૷ •

  14. ·ͱΊ • ࠓͷॴεΫϩʔϧΛݕ஌͢Δํ๏͕ݟ౰ͨΒ ͳ͍ͷͰBest Practice͔Ͳ͏͔Θ͔Βͳ͍ • ListͷRowͷonAppearΛར༻͢Δ • Indicator͸UIKit͔Βݺͼग़͢

  15. #End

  16. Sample Code ↓↓ https://github.com/mcz9mm/SwiftUI-List- Pagination