let us go moka 발표자료 - github pages · texture ?? texture is an ios framework built on top...

46
TEXTURE moka in let us: Go 2019 spring

Upload: others

Post on 05-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

TEXTUREmoka

in let us: Go 2019 spring

Page 2: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

GOAL오늘의 목표

Page 3: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

오늘의 목표

Texture 쓰세요

GOAL

Page 4: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

TEXTURE ??

Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive.

AsyncDisplayKit

Page 5: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

Texture는 복잡한 사용자 인터페이스를 부드럽고 반응성 좋은 UIKit 위에 구축 된 iOS 프레임 워크입니다.

TEXTURE ??

Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive.

AsyncDisplayKit

Page 6: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

😵 😵 😵 😵 😵

Page 7: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

쉽게 말하면,

“story board 또는 xib(nib) 등 없이

코드로 UI 를 그리는 프레임워크” 입니다.

Page 8: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

쉽게 말하면,

“빠르고 좋은”

Page 9: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

Why Texture ?

Page 10: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

AutoLayout …

Page 11: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

https://github.com/layoutBox/LayoutFrameworkBenchmark

Page 12: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

Pinterest Slack(?)

빙글

Page 13: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

https://medium.com/@Pinterest_Engineering/re-architecting-pinterest-039-s-ios-app-e0a2d34a6ac2

Page 14: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

코드이다

재사용이 용이하다 (모듈화)

반응, 랜더링이 빠르다 (내부적으로 설계가 잘되어있다 / Thread 안전성)

협업에 용이하다

가독성이 좋다 (FlexBox) / 다른 코드로 그리는 도구들에 비해

AppCode & Xcode 동시에 사용 가능하다

장점 Texture ❤

Page 15: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 16: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

러닝커브 .. ?

자료가 적다

문서나 예제에 objective C 가 많다

단점 Texture 👀

Page 17: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

HOW TEXTURE ??Show sample

Page 18: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

Node

LayoutSpec

- ASDisplayNode- init- didLoad- layoutSpecThatFits- layout

( background thread )

( background thread )

( main thread )

* background thread 에서 view & layer 접근에 주의

Page 19: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

pod ‘Texture’ (in Podfile)

pod install

Page 20: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 21: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 22: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 23: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 24: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 25: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 26: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

LayoutSpec

Page 27: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

가독성코드는 읽기 쉬워야 한다

Page 28: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

Anko / DSL

Page 29: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 30: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

Swift / DSL

UIKit

Page 31: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

Swift

Page 32: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 33: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 34: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 35: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

Example

Page 36: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 37: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

ASViewController

Page 38: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 39: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 40: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 41: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 42: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 43: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 44: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 45: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive
Page 46: let us Go moka 발표자료 - GitHub Pages · TEXTURE ?? Texture is an iOS framework built on top of UIKit that keeps even the most complex user interfaces smooth and responsive

Thank you