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

Awaiting for New UI in iOS 13

100059
June 19, 2019

Awaiting for New UI in iOS 13

190619 CA.swift

100059

June 19, 2019
Tweet

More Decks by 100059

Other Decks in Technology

Transcript

  1. %BSLNPEF w J04͔Βαϙʔτ w ҉͍ΧϥʔύϨοτΛ༻͍ͨ6*Λඳը w ؀ڥޫ͕ऑ͍࣌ʹਪ঑ w ίϯςϯπʹΑΓूத w

    IUUQTEFWFMPQFSBQQMFDPNEFTJHOIVNBOJOUFSGBDFHVJEFMJOFT JPTWJTVBMEFTJHOEBSLNPEF
  2. 4FNBOUJD$PMPS w ৭ͷ໨తΛදͨ͠$PMPSɻ6*ཁૉͷ৭ͷ ࢦఆʹద͍ͯ͠Δɻ w MBCFM MJOL QMBDFIPMEFS TFQBSBUPS w

    pMMΞΠίϯ΍ਤܗ BMQIB͕ະຬͰ ͋Γɺഎܠʹ৭͕͋Δͱ͜ΖͰͷ࢖༻ Λ૝ఆ
  3. #BDLHSPVOE$PMPS w 4FNBOUJD$PMPS w ֊૚Խ w 1SJNBSZ 4FDPOEBSZ ͕͋ΓɺॏͶͯ 7JFXΛ֊૚Խ͢Δ͜ͱΛ૝ఆ

    w &MFWBUFE$PMPS POMZEBSL  w EBSLNPEFͰ6*͕ॏͳ͍ͬͯΔͱ͖ʹɺ গ͠໌Δ͍&MFWBUFE$PMPS͕࢖ΘΕΔɻ w -JHIUNPEFͰ6*͕ॏͳ͍ͬͯΔͱ͖͸υϩο ϓγϟυʔΛ෇༩͢ΔͷΛਪ঑
  4. $VTUPN$PMPS w ίʔυͰఆٛ w "TTFU$BUBMPHͰఆٛ extension UIColor { // you

    provide creates a new color object based on the traits in the provided trait collection. @available(iOS 13.0, *) public init(dynamicProvider: @escaping (UITraitCollection) -> UIColor) } extension UIColor { static let dynamicColor = UIColor { (traitCollection: UITraitCollection) -> UIColor in if traitCollection.userInterfaceStyle == .dark { return .white } else { return .black } } }
  5. New6*JOJ04 w %BSLNPEF w 6*GPSJ04 w 'MFYJCMF6* w 4IFFU w

    6*4FBSDI$POUSPMMFS w .VMUJQMF4FMFDUJPO(FTUVSFT
  6. 4IFFU w EFGBVMUͷ.PEBM͕ηϛϞʔμϧͷ4IFFU w ਪ঑߲໨ w ෳࡶͳॲཧΛϞʔμϧ಺Ͱ͸͠ͳ͍ w Ϟʔμϧ಺ʹด͡ΔϘλϯΛ഑ஔ w

    Ϟʔμϧ಺ͰͷॲཧΛද͢λΠτϧΛೖ ΕΔ w ॲཧΛதஅ͢Δͱ͖͸ɺΞϥʔτΛදࣔ
  7. New6*JOJ04 w %BSLNPEF w 6*GPSJ04 w 'MFYJCMF6* w 4IFFU w

    6*4FBSDI$POUSPMMFS w .VMUJQMF4FMFDUJPO(FTUVSFT