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

SwiftUI,Combine Framework,KeyPath - 堅固な関係からSwif...

notoroid
January 18, 2020

SwiftUI,Combine Framework,KeyPath - 堅固な関係からSwiftUI への閾値を下げる

SwiftUI を理解するのに欠かせないCombine framework とKeyPath についてのプレゼンテーション。

notoroid

January 18, 2020
Tweet

More Decks by notoroid

Other Decks in Programming

Transcript

  1. ॆిใࠂ͞Μ #BUUFSFDFJWFS w όοςϦʔϞχλʔ ϢʔςΟϦςΟʔ  w ࠷େ୆ ࣮ػ ϦϞʔτ୆

     w ख࣋ͪͷJ1IPOF͔Βଞʹ͍࣋ͬͯΔ J1IPOF J1BEͳͲͷػثͷόοςϦʔঢ়ଶ֬ ೝՄೳ w ࣗ୐ʹ͋ΔJ1IPOFͷόοςϦʔঢ়ଶ֬ೝՄ ೳ
  2. 4XJGUҎ߱ͷ,FZ1BUIͷ༻్ w ,70 ,FZ7BMVF0CTFSWJOH  w $PNCJOFGSBNFXPSL w NBQ 

    w BTTJHO  w 4XJGU6* w 'PS&BDI -JTU 'PSN  w FOWJSPONFOU
  3. ॆిใࠂ͞ΜͰͷ,FZ1BUI࢖༻ճ਺ ؔ਺໊ ࢖༻਺ ϑϨʔϜϫʔΫ ༻్ NBQ  $PNCJOFGSBNFXPSL 'PS&BDI 4FMGTVQQPSUF

    E-PDBMFT  4XJGU6* 1SFWJFX FOWJSPONFOU aMPDBMF  MPDBMF  4XJGU6* 1SFWJFX BTTJHO UP PO  $PNCJOFGSBNFXPSL 'PS&BDI JEaTFMG  4XJGU6* FOWJSPONFOU aJT&OBCM FE  4XJGU6*
  4. ॆిใࠂ͞ΜͰͷ,FZ1BUI࢖༻ճ਺ ؔ਺໊ ࢖༻਺ ϑϨʔϜϫʔΫ ༻్ NBQ  $PNCJOFGSBNFXPSL 'PS&BDI 4FMGTVQQPSUF

    E-PDBMFT  4XJGU6* 1SFWJFX FOWJSPONFOU aMPDBMF  MPDBMF  4XJGU6* 1SFWJFX BTTJHO UP PO  $PNCJOFGSBNFXPSL 'PS&BDI JEaTFMG  4XJGU6* FOWJSPONFOU aJT&OBCM FE  4XJGU6*
  5. σʔλC σʔλC σʔλC σʔλC σʔλB σʔλB 1VCMJTIFST 4VCTDSJCFST 0QFSBUPST σʔλͷมܗ

    σʔλͷมܗɺσʔλͷྲྀ଎ɺσʔλͷྲྀྔͷՃ޻ σʔλͷൃߦऀ σʔλͷߪಡऀ
  6. JNQPSU6*,JU JNQPSU$PNCJOF WBSBOZ$BODFMBCMF4FU"OZ$BODFMMBCMF  MFUQBTTUISPVHI4VCKFDU1BTTUISPVHI4VCKFDU*OU /FWFS  MFUQBTTUISPVHI4VCKFDU1BTTUISPVHI4VCKFDU4USJOH /FWFS 

    QBTTUISPVHI4VCKFDU NBQ\WBMVFJO 4USJOHa WBMVF  ^ TVCTDSJCF QBTTUISPVHI4VCKFDU  QBTTUISPVHI4VCKFDUTJOL\ WBMVF JO QSJOU QBTTUISPVHI4VCKFDUTJOLWBMVFa WBMVF   ^TUPSF JOBOZ$BODFMBCMF  1VCMJTIFS୲౰ 4VCTDSJCFS୲౰ 0QFSBUPS୲౰
  7. MFUQBTTUISPVHI4VCKFDU1BTTUISPVHI4VCKFDU*OU /FWFS  QBTTUISPVHI4VCKFDUTFOE   QBTTUISPVHI4VCKFDUTJOL\ WBMVF JO QSJOU

    QBTTUISPVHI4VCKFDUTJOLWBMVFa WBMVF   ^TUPSF JOBOZ$BODFMBCMF  QBTTUISPVHI4VCKFDUTFOE   MFUDVSSFOU7BMVF4VCKFDU$VSSFOU7BMVF4VCKFDU*OU /FWFS   DVSSFOU7BMVF4VCKFDUTJOL\ WBMVF JO QSJOU DVSSFOU7BMVF4VCKFDUTJOLWBMVFa WBMVF   ^TUPSF JOBOZ$BODFMBCMF  'VUVSF*OU /FWFS\QSPNJTFJO 5ISFBETMFFQ GPS5JNF*OUFSWBM  %JTQBUDI2VFVFHMPCBM BTZOD\ %JTQBUDI2VFVFNBJOBTZOD\ QSP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