Slide 1

Slide 1 text

iOS 16からの ϩοΫը໘Widget ૪ୣઓにඋえる YUMEMI.swift #15 ~WWDC復習会~

Slide 2

Slide 2 text

Self Introduction ᠃ڮ ྋ !UTV[VLJ Ϡϑʔגࣜձࣾ 1BZ1BZϑϦϚ J04ΞϓϦ։ൃ झຯݸਓ։ൃ

Slide 3

Slide 3 text

My Apps

Slide 4

Slide 4 text

My Apps 8JEHFUରԠ

Slide 5

Slide 5 text

Contents 01 LockScreen ৽͍͠ϩοΫը໘ ͷػೳ 02 Color and Rendering ৭ʹ͍ͭͯ 03 Privacy Ϣʔβʔͷϓϥό γʔΛकΔ 04 Addapted ϓϩδΣΫτʹ௥ Ճ͢Δ

Slide 6

Slide 6 text

New Lock Screen

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

New Widget

Slide 11

Slide 11 text

Complicatioins? l ΞϓϦʹؔ͢ΔλΠϜϦʔͰؔ ࿈ੑͷߴ͍৘ใΛ΢ΥονϑΣ Πεʹදࣔͤ͞Δ l ෳࡶͳ৘ใΛͻͱ໨ͰཧղͰ͖ Δ΋ͷ l XBUDI04͔Β4XJGU6*Ͱ࡞Ε Δ

Slide 12

Slide 12 text

accessoryCircular

Slide 13

Slide 13 text

accessoryRectangular

Slide 14

Slide 14 text

accessoryInline

Slide 15

Slide 15 text

accessoryCorner

Slide 16

Slide 16 text

Color and Rendering watch face ͱ LockScreenͷ ϨϯμϦϯάͷҧ͍Λ஌Δ

Slide 17

Slide 17 text

Color and Rendering

Slide 18

Slide 18 text

Color and Rendering

Slide 19

Slide 19 text

Color and Rendering ロック画面にはダークモードの設定がない ため、考慮しなくて良い

Slide 20

Slide 20 text

fullColor l ࢦఆ͞Εͨ৭௨Γʹදࣔ͞ΕΔ l Χϥϑϧͳݟͨ໨ʹͳΔ l XBUDI04ͷΈ

Slide 21

Slide 21 text

accented l ࣗಈతʹ৭෇͚͞ΕΔ l ίϯςϯπ͸ͭͷάϧʔϓʹ෼͚ ΒΕϑϥοτʹண৭͞ΕΔ l ݩͷಁ໌౓ͷΈΛอ࣋͢Δ l XBUDI04ͷΈ

Slide 22

Slide 22 text

accented l XJEHFU"DFOUBCMF l αϒϏϡʔ·ͰΞΫηϯτάϧʔϓ ʹ௥Ճ

Slide 23

Slide 23 text

accented ΞΫηϯτΧϥʔʹΑͬͯେ͖͘ݟͨ໨͸ҟͳΔ

Slide 24

Slide 24 text

vibrant ϩοΫը໘ͷϨϯμϦϯάϞʔυ

Slide 25

Slide 25 text

vibrant ίϯςϯπ͸Ұ౓୤৭͞ΕΔ

Slide 26

Slide 26 text

vibrant ϩοΫը໘ͷഎܠʹ߹Θͤͯࣗಈతʹ৭෇͚͞ΕΔ AndroidのMaterial Youと同等

Slide 27

Slide 27 text

New SwiftUI WidgetΛΑΓྑ͘͢ΔͨΊͷ SwiftUIͷ৽ػೳ

Slide 28

Slide 28 text

AccessoryWidget Background എܠ͕ඞཁͳ΢ΟδΣοτʹҰ؏ͨ͠എܠΛ༩͑Δ͜ͱ͕Ͱ͖Δ

Slide 29

Slide 29 text

AccessoryWidgetBackground

Slide 30

Slide 30 text

ProgressView (interval:coundDown:) Ұ౓ͷΤϯτϦʔͰ8JEHFUΛΞχϝʔγϣϯͤ͞Δ͜ͱ͕Ͱ͖Δ

Slide 31

Slide 31 text

ViewThatFits ෳ਺ͷ7JFXΛࢦఆ͢Δͱར༻Մೳͳεϖʔεʹऩ·Δ࠷ॳͷίϯς ϯπϏϡʔΛදࣔ͢Δ

Slide 32

Slide 32 text

Privacy ϩοΫը໘ʹஔ͍ͨ8JEHFUͷ ηΩϡϦςΟΛߴΊΔ

Slide 33

Slide 33 text

iOS σϑΥϧτͰ͸ ը໘ϩοΫ࣌Ͱ΋ ίϯςϯπ͸දࣔ͞ΕΔ ॏཁͳ৘ใ͸৑௕Խͤ͞Δ

Slide 34

Slide 34 text

.privacySensitive() iOS15~ https://developer.apple.com/documentation/swiftui/view/privacysensitive(_:)

Slide 35

Slide 35 text

watchOS ίϯςϯπ͸௿ً౓ʹͳΓ ߋ৽ස౓΋௿͘ͳΔ͕ ίϯςϯπ͸දࣔ͞Εଓ͚ Δ ૷ண͍ͯ͠ΔͱϩοΫঢ়ଶʹͳΒͣඇΞΫςΟϒ࣌ ʹ͸ৗ࣌දࣔϞʔυʹͳΔ

Slide 36

Slide 36 text

isLuminanceReduced

Slide 37

Slide 37 text

isLuminanceReduced

Slide 38

Slide 38 text

৽͍͠Widgetͷ ௥Ճํ๏ طଘͷϓϩδΣΫτʹ LockScreen༻ͷWidgetΛ௥ Ճ͢Δ

Slide 39

Slide 39 text

طଘͷXBUDI04ΞϓϦʹద༻ͤ͞Δ 5BSHFUͷ8JEHFU&YUFOUJPOΛෳ੡

Slide 40

Slide 40 text

طଘͷXBUDI04ΞϓϦʹద༻ͤ͞Δ ໊લΛΑ͠ͳʹม͑Δ

Slide 41

Slide 41 text

طଘͷXBUDI04ΞϓϦʹద༻ͤ͞Δ #VOEMF*EFOUJGJFSʹ XBUDILJUBQQΛ௥Ճ

Slide 42

Slide 42 text

طଘͷXBUDI04ΞϓϦʹద༻ͤ͞Δ #VJME4FUUJOHTͰ#BTF4%,Λ XBUDI04ʹมߋ

Slide 43

Slide 43 text

طଘͷXBUDI04ΞϓϦʹద༻ͤ͞Δ 8BUDI"QQͷ(FOFSBMʹҠΓ ઌ΄Ͳ௥Ճͨ͠8JEHFU&YUFOTJPO Λ௥Ճ͢Δ

Slide 44

Slide 44 text

طଘͷXBUDI04ΞϓϦʹద༻ͤ͞Δ ४උ׬ྃʂ 8JEHFUʹ৽͍͠ϑΝϛϦʔΛαϙʔτͤ͞Δ

Slide 45

Slide 45 text

supportedFamiliesʹ௥Ճ

Slide 46

Slide 46 text

XBUDI04Λར༻͍ͯ͠Δ৔߹

Slide 47

Slide 47 text

XBUDI04Λར༻͍ͯ͠Δ৔߹

Slide 48

Slide 48 text

XBUDI04Λར༻͍ͯ͠Δ৔߹ XBUDI04ͷ*OUFOU͸ࣄલʹઃఆ͞ ΕͨϦετΛఏڙ͢Δඞཁ͕͋Δ

Slide 49

Slide 49 text

1SFWJFXͷදࣔ QSFWJFX$POUFYU 8JEHFU1SFWJFX$POUFYU GBNJMZYYYY

Slide 50

Slide 50 text

$BOWBT%FWJDF4FUUJOHT 9DPEF͔Βͷػೳ ΑΓ1SFWJFX͕࢖͍΍͘͢

Slide 51

Slide 51 text

Widget Family ઃఆͨ͠8JEHFU'BNJMZͷ1SFWJFX Λ֬ೝ͢Δ͜ͱ͕Ͱ͖Δ

Slide 52

Slide 52 text

Presentation ௨ৗ࣌ ϓϨʔεϗϧμʔ ϩοΫத

Slide 53

Slide 53 text

variants

Slide 54

Slide 54 text

஫ҙࣄ߲

Slide 55

Slide 55 text

ը૾ͷऔΓѻ͍ʹ஫ҙ

Slide 56

Slide 56 text

ϑΥϯτ ࣗಈద༻ͤ͞ΔͨΊʹ͸σϑΥϧ τͷϑΥϯτύϥϝʔλͱϑΥϯ τελΠϧΛ࢖͏

Slide 57

Slide 57 text

ϢʔβʔʹΑΔ8JEHFUͷฤू ؒҧ͍ͬͯͨΒڭ͍͑ͯͩ͘͞🙇 l -PDL4DSFFOͷ8JEHFU͸*OUFOUͷฤू͕ Ͱ͖ͳ͍ʢ؍ଌൣғ಺ l ࣄલʹܾΊΒΕͨύϥϝʔλΛ࢖͏

Slide 58

Slide 58 text

·ͱΊ ü ৽͍͠ϩοΫը໘ͷొ৔ʹΑΓɺϢʔβʔ͸Ϣʔε έʔεʹ߹ΘͤͯϩοΫը໘Λม͑Δͱ͍͏͜ͱ͕ ༰қʹͰ͖ΔΑ͏ʹͳͬͨ ü ։ൃऀ΋ϢʔβʔͷࠣࡉͳχʔζʹԠ͑Δ͜ͱ͕Ͱ͖ ΔΑ͏ʹɺ͞·͟·ͳ8JEHFUΛ༻ҙ͢Δ͜ͱͰࠓޙ ͷϩοΫը໘૪ୣઓʹඋ͑·͠ΐ͏ LiveActivitiesのAPI公開が待ち遠しい….

Slide 59

Slide 59 text

͓஌Βͤ iOS/Android ΞϓϦΤϯδχΞ࠾༻͍ͯ͠·͢ʂ

Slide 60

Slide 60 text

Resources ● Keynote ○ https://developer.apple.com/wwdc22/101 ● Complications and widgets: Reloaded ○ https://developer.apple.com/videos/play/wwdc2022-10050 Videos: ● "QQMFɺJ04Ͱಋೖ͞ΕΔ·ͬͨ͘৽͍͠ϩοΫը໘ͷମݧͱɺڞ ༗ͱίϛϡχέʔγϣϯͷͨΊͷ৽͍͠ํ๏Λൃද ○ IUUQTXXXBQQMFDPNKQOFXTSPPNBQQMFVOWFJMT OFXXBZTUPTIBSFBOEDPNNVOJDBUFJOJPT ● XBUDI04ϓϨϏϡʔ ○ IUUQTXXXBQQMFDPNKQXBUDIPTXBUDIPTQSFWJFX Articles:

Slide 61

Slide 61 text

Thanks! Do you have any questions?