WWDC 2020 หมายเหตุเซสชัน
ขอบคุณ ?
ปีที่แล้วบันทึกย่อของ WWDC นั้นประสบความสำเร็จอย่างมากจนฉันตัดสินใจที่จะสานต่อสรุปเซสชัน WWDC ในรูปแบบนี้ ฉันอยากจะใช้เวลาสักครู่เพื่อขอบคุณทุกท่านสำหรับการบริจาคคำติชมการสนับสนุนและการอ่านบันทึกย่อเซสชันของฉัน
อินโทร
โดยปกติแล้วมันจะเร็วกว่ามากในการอ่านสัญลักษณ์แสดงหัวข้อย่อยแทนที่จะดูวิดีโอเซสชัน 50 นาที ถ้าคุณพบสิ่งที่น่าสนใจคุณยังสามารถดูได้
เซสชันที่กล่าวถึงเป็นพิเศษจะถูกเน้นโดยใช้★
นี่คืองานที่กำลังดำเนินอยู่เนื่องจากเป็นความพยายามอย่างมากที่จะดูวิดีโอทั้งหมดด้วยตัวเอง ดังนั้นโปรดอดทนหรือเพียงแค่เปิดปัญหาเพื่อให้คำแนะนำว่าเซสชันใดที่คุณต้องการดูต่อไป :)
ผลงาน
อย่าลังเลที่จะส่ง PR หากฉันมีบางอย่างผิดปกติหรือคุณมีข้อเสนอแนะสำหรับการปรับปรุง โปรดดูในการบริจาค MD หากคุณต้องการมีส่วนร่วม
ขอบคุณมากสำหรับทุกคนที่มีส่วนร่วมและปรับปรุงคุณภาพโดยรวมของโน้ตและผู้ที่เพิ่มโน้ตที่สมบูรณ์ลงในรายการ
การกล่าวถึง
repo นี้ได้รับการกล่าวถึงหลายครั้งบน Twitter และนอกเหนือจากนี้ในสถานที่ต่อไปนี้:
- iOS Dev Weekly ฉบับที่ 409
- สารพัด iOS ฉบับที่ 287
- ปัญหาการพัฒนาอย่างรวดเร็ว 189
- wwdcnotes
ลิงค์ที่เกี่ยวข้องกับ WWDC ที่น่าสนใจ
- เอกสารการพัฒนาของ Apple โดย @apple
- บันทึกการเปิดตัว xcode
- บันทึกการเปิดตัว iOS & iPados
สารบัญ
- (สิ่งที่ต้องทำ) การขยายระบบอัตโนมัติด้วย App Store Connect API
- (สิ่งที่ต้องทำ) มีอะไรใหม่ในการประเมิน
- แนะนำกุญแจรถ
- (สิ่งที่ต้องทำ) เพิ่มประสิทธิภาพไปป์ไลน์รูปภาพหลักสำหรับแอพวิดีโอของคุณ
- (to-do) แก้ไขและเล่นวิดีโอ HDR ด้วย avfoundation
- (สิ่งที่ต้องทำ) ส่งออกสื่อ HDR ในแอพของคุณด้วยการ avfoundation
- (to-do) เนื้อหา MPEG-4 ที่แยกส่วนกับ AvassetWriter
- (สิ่งที่ต้องทำ) ค้นพบการติดตามเรย์ด้วยโลหะ
- (สิ่งที่ต้องทำ) ทำความรู้จักกับพอยน์เตอร์ฟังก์ชั่นโลหะ
- (สิ่งที่ต้องทำ) ข้อมูลหลัก: sundries และ maxims
- (สิ่งที่ต้องทำ) การเข้าถึงแอพสำหรับการควบคุมสวิตช์
- (สิ่งที่ต้องทำ) ทำให้แอปของคุณสามารถเข้าถึงได้ด้วยสายตา
- (to-do) สร้างเมล็ดภาพหลักที่ใช้โลหะด้วย xcode
- (สิ่งที่ต้องทำ) สร้างประสบการณ์การพูดที่ไร้รอยต่อในแอพของคุณ
- รายการใน UICollectionView
- การกำหนดค่าเซลล์ที่ทันสมัย
- พบกับ WidgetKit
- (สิ่งที่ต้องทำ) สแต็คกริดและโครงร่างใน Swiftui
- (สิ่งที่ต้องทำ) สร้างมุมมอง Swiftui สำหรับวิดเจ็ต
- (สิ่งที่ต้องทำ) วิดเจ็ตรหัสส่วนที่ 1: การผจญภัยเริ่มต้นขึ้น
- (to-do) widgets code-along, ส่วนที่ 2: timelines สำรอง
- (TO-DO) Widgets Code-Along, ส่วนที่ 3: ระยะเวลาที่ก้าวหน้า
- แอพ (สิ่งที่ต้องทำ) สิ่งจำเป็นใน Swiftui
- (สิ่งที่ต้องทำ) สร้างแอพที่ใช้เอกสารใน Swiftui
- สิ่งจำเป็นข้อมูลใน Swiftui
- มีอะไรใหม่ใน Swiftui
- (สิ่งที่ต้องทำ) สร้างแอพ Swiftui สำหรับ tvos
- (สิ่งที่ต้องทำ) สร้างตัวจําแนกแอ็คชั่นด้วย Create ML
- (สิ่งที่ต้องทำ) ความก้าวหน้าในแหล่งข้อมูลที่แตกต่างกัน
- (สิ่งที่ต้องทำ) สร้างภาวะแทรกซ้อนสำหรับ Apple Watch
- (สิ่งที่ต้องทำ) เปิดใช้งาน DNS ที่เข้ารหัส
- (สิ่งที่ต้องทำ) สร้างภาวะแทรกซ้อนใน Swiftui
- (สิ่งที่ต้องทำ) ทำให้ภาวะแทรกซ้อนของคุณทันสมัยอยู่เสมอ
- สร้างด้วยตัวเลือก iOS เมนูและการกระทำ
- (สิ่งที่ต้องทำ) เพิ่มประสิทธิภาพส่วนต่อประสานของแอพ Mac Catalyst ของคุณ
- (สิ่งที่ต้องทำ) ระบุแนวโน้มด้วยพลังและประสิทธิภาพ API
- (สิ่งที่ต้องทำ) ออกแบบปฏิสัมพันธ์ของสื่อ Siri คุณภาพสูง
- (สิ่งที่ต้องทำ) ขยายความตั้งใจของสื่อ Sirikit ไปยังแพลตฟอร์มเพิ่มเติม
- (สิ่งที่ต้องทำ) การดำเนินการตามพื้นหลัง demystified
- (สิ่งที่ต้องทำ) มีอะไรใหม่ใน Sirikit และทางลัด
- (สิ่งที่ต้องทำ) ประเมินและเพิ่มประสิทธิภาพการโต้ตอบด้วยเสียงสำหรับแอปของคุณ
- (สิ่งที่ต้องทำ) ช่วยเพิ่มความตั้งใจของคุณ
- (สิ่งที่ต้องทำ) การถอดรหัสและจัดการกับข้อผิดพลาดทั่วไปของ Siri
- (สิ่งที่ต้องทำ) วินิจฉัยปัญหาด้านประสิทธิภาพกับผู้จัดงาน XCode
- กำจัดมัดแอนิเมชั่นด้วย xctest
- ทำไมแอปของฉันถึงถูกฆ่า?
- (สิ่งที่ต้องทำ) มีอะไรใหม่ใน Metrickit
- (สิ่งที่ต้องทำ) รวมแอปของคุณเข้ากับลม
- (สิ่งที่ต้องทำ) นำเสนอการกระทำของคุณในแอพทางลัด
- Design for Intelligence: แอพวิวัฒนาการ
- (สิ่งที่ต้องทำ) การออกแบบเพื่อความฉลาด: ทำความรู้จักกับ "ระบบ"
- Design for Intelligence: ค้นพบโอกาสใหม่ ๆ
- (สิ่งที่ต้องทำ) ค้นพบเทคนิคการแก้ไขข้อบกพร่องของภาพหลัก
- (สิ่งที่ต้องทำ) ถอดรหัสคะแนนด้วย Avfoundation และ Videotoolbox
- (ต้องทำ) เขียนการทดสอบที่จะล้มเหลว
- (สิ่งที่ต้องทำ) สร้างสำหรับตัวชี้ iPados
- (สิ่งที่ต้องทำ) จัดการแทร็กแพดและเมาส์
- (สิ่งที่ต้องทำ) ไพรเมอร์การแจ้งเตือนแบบพุช
- (สิ่งที่ต้องทำ) สำรวจแพ็คเกจและโครงการด้วยสนามเด็กเล่น XCode
- ความก้าวหน้าใน uicollectionView
- มีอะไรใหม่ในการเชื่อมโยงสากล
- (สิ่งที่ต้องทำ) สำรวจแอป Action & Vision
- คำปราศรัย★
- (สิ่งที่ต้องทำ) พบกับการแบ่งปันหน้านาฬิกา
- (สิ่งที่ต้องทำ) ออกแบบวิดเจ็ตที่ยอดเยี่ยม
- (สิ่งที่ต้องทำ) ใช้รูปลักษณ์ใหม่ของ macOS
- (สิ่งที่ต้องทำ) สร้างสำหรับ iPad
- (สิ่งที่ต้องทำ) พบกับการเขียน Scribble สำหรับ iPad
- (สิ่งที่ต้องทำ) มีอะไรใหม่ในดินสอ
- (สิ่งที่ต้องทำ) รองรับคีย์บอร์ดฮาร์ดแวร์ในแอพของคุณ
- (สิ่งที่ต้องทำ) สนับสนุนความเป็นส่วนตัวของเครือข่ายท้องถิ่นในแอพของคุณ
- (สิ่งที่ต้องทำ) เพิ่มประสิทธิภาพและความปลอดภัยด้วยเครือข่ายที่ทันสมัย
- (สิ่งที่ต้องทำ) สร้างการเชื่อมต่อแบบพุชในพื้นที่สำหรับเครือข่ายที่ถูก จำกัด
- (สิ่งที่ต้องทำ) แอพ iPad และ iPhone บน Apple Silicon Macs
- (สิ่งที่ต้องทำ) อัตโนมัติทุกที่
- (สิ่งที่ต้องทำ) ประสิทธิภาพการพากย์เสียงด้วยใบพัดที่กำหนดเอง
- (สิ่งที่ต้องทำ) การออกแบบการเข้าถึงสำหรับตัวเร่งปฏิกิริยา MAC
- (สิ่งที่ต้องทำ) สร้างคลิปแอพสำหรับธุรกิจอื่น ๆ
- (ต้องทำ) บทนำสู่ Swiftui
- ปรับปรุงคลิปแอปของคุณ
- (สิ่งที่ต้องทำ) ค้นพบ appleseed สำหรับไอทีและการปรับปรุงซอฟต์แวร์ที่มีการจัดการ
- (สิ่งที่ต้องทำ) การใช้ประโยชน์จากองค์กรและการรับรองความถูกต้องขององค์กร
- (สิ่งที่ต้องทำ) สร้างแอพองค์กรที่รับรู้ตำแหน่ง
- (สิ่งที่ต้องทำ) สร้างห้องสวีทแอพ Enterprise ที่ปรับขนาดได้
- (สิ่งที่ต้องทำ) มีอะไรใหม่ใน MAC Catalyst
- (สิ่งที่ต้องทำ) การออกแบบสำหรับศูนย์เกม
- กำหนดค่าและเชื่อมโยงคลิปแอปของคุณ
- แจกจ่ายเฟรมเวิร์กไบนารีเป็นแพ็คเกจที่รวดเร็ว
- (to-do) ตรวจสอบแก้ไขและสร้างภาพวาดดินสอ
- (to-do) จัดโครงสร้างแอพของคุณสำหรับตัวอย่าง Swiftui
- (สิ่งที่ต้องทำ) มีอะไรใหม่ใน CareKit
- (สิ่งที่ต้องทำ) ใช้การปรับใช้แบบจำลองและความปลอดภัยด้วย Core ML
- (สิ่งที่ต้องทำ) รับรุ่นบนอุปกรณ์โดยใช้ตัวแปลง Core ML
- (สิ่งที่ต้องทำ) การฝึกอบรมการควบคุมในการสร้าง ML ด้วย Swift
- (สิ่งที่ต้องทำ) มอบประสบการณ์เสียง HLS ที่ดีขึ้น
- (สิ่งที่ต้องทำ) สร้างแอพความปลอดภัยปลายทาง
- (สิ่งที่ต้องทำ) Formatters: สร้างข้อมูลที่เป็นมิตรกับมนุษย์
- ออกแบบเพื่อความเป็นส่วนตัวของสถานที่
- (สิ่งที่ต้องทำ) ความก้าวหน้าในรันไทม์ Objective-C
- xctskip การทดสอบของคุณ
- ยอมรับการอนุมานประเภท Swift
- (สิ่งที่ต้องทำ) จัดการพอยน์เตอร์อย่างปลอดภัยใน Swift
- (สิ่งที่ต้องทำ) สำรวจการบันทึกใน Swift
- (สิ่งที่ต้องทำ) แพ็คเกจ Swift: ทรัพยากรและการแปลเป็นภาษาท้องถิ่น
- มีอะไรใหม่ใน Swift
- (สิ่งที่ต้องทำ) มีอะไรใหม่ในการออกแบบ Watchos
- (สิ่งที่ต้องทำ) ออกแบบคลิปแอพที่ยอดเยี่ยม
- (สิ่งที่ต้องทำ) ได้รับประโยชน์สูงสุดจากการลงชื่อเข้าใช้กับ Apple
- สำรวจคลิปแอพ
- (สิ่งที่ต้องทำ) รายละเอียดของการพิมพ์ UI
- (สิ่งที่ต้องทำ) ภาพต้นแบบในภาพบน tvos
- มีอะไรใหม่ใน HealthKit
- (สิ่งที่ต้องทำ) ซิงโครไนซ์ข้อมูลสุขภาพกับ HealthKit
- (สิ่งที่ต้องทำ) แก้ไขมุมมอง Swiftui ด้วยสายตา
- (สิ่งที่ต้องทำ) ค้นพบการปรับปรุง wkwebview
- (สิ่งที่ต้องทำ) ปลอดภัยแอปของคุณ: การสร้างแบบจำลองภัยคุกคามและการต่อต้านรูปแบบ
- (สิ่งที่ต้องทำ) สร้างการโต้ตอบอย่างรวดเร็วด้วยทางลัดบน Watchos
- (สิ่งที่ต้องทำ) เพิ่มการกำหนดค่าและความฉลาดในวิดเจ็ตของคุณ
- (สิ่งที่ต้องทำ) ขยายการเข้าถึงของคุณด้วยคำแนะนำเหตุการณ์ Siri
- สถานะแพลตฟอร์มของสหภาพ★
- (สิ่งที่ต้องทำ) การออกแบบเพื่อความฉลาด: พบปะผู้คนที่พวกเขาอยู่
- (สิ่งที่ต้องทำ) สร้างแอพ Enterprise ที่ยอดเยี่ยม: แชทกับ Aaron Levie ของ Box's Box
- (สิ่งที่ต้องทำ) ออกแบบด้วยตัวเลือก iOS เมนูและการกระทำ
- (สิ่งที่ต้องทำ) การออกแบบสำหรับ iPad
- (to-do) สัญลักษณ์ SF 2
- (สิ่งที่ต้องทำ) มีอะไรใหม่ใน Core NFC
- (สิ่งที่ต้องทำ) ทำให้ไดรเวอร์ PCI และ SCSI ทันสมัยด้วย Driverkit
- (สิ่งที่ต้องทำ) พอร์ตแอพ Mac ของคุณไปยัง Apple Silicon
- (สิ่งที่ต้องทำ) มีอะไรใหม่ใน ResearchKit
- (สิ่งที่ต้องทำ) สำรวจการคำนวณเชิงตัวเลขใน Swift
- (สิ่งที่ต้องทำ) สร้างเลย์เอาต์ที่เป็นมิตรกับการแปลโดยใช้ xcode
- (สิ่งที่ต้องทำ) จัดการกับการหยุดชะงักและการแจ้งเตือนในการทดสอบ UI
- รับผลการทดสอบของคุณเร็วขึ้น
- (สิ่งที่ต้องทำ) สร้างแอพที่กำหนดเองสำหรับพนักงาน
- (สิ่งที่ต้องทำ) ปรับใช้อุปกรณ์ Apple โดยใช้ zero-touch
- (สิ่งที่ต้องทำ) พบกับกลุ่มงานเสียง
- (สิ่งที่ต้องทำ) ปรับปรุงการเขียนสตรีมด้วยเครื่องมือ HLS
- (to-do) บันทึกเสียงสเตอริโอด้วย avaudiosession
- มีอะไรใหม่ใน HLS ที่มีความถี่ต่ำ
- (สิ่งที่ต้องทำ) ค้นพบ HLS บล็อกคำแนะนำล่วงหน้า
- (สิ่งที่ต้องทำ) เพิ่มประสิทธิภาพสตรีมสดด้วยการอัปเดต Delta เพลย์ลิสต์ HLS
- (สิ่งที่ต้องทำ) ลดเวลาแฝงด้วย HLS บล็อกเพลย์ลิสต์รีโหลด
- (to-do) ปรับการแทรกโฆษณาให้เข้ากับ HLS ที่มีความล่าช้าต่ำ
- (สิ่งที่ต้องทำ) ชุดเครื่องมือ AR ของศิลปิน
- (สิ่งที่ต้องทำ) สายรัดแอปเปิ้ล GPU กับโลหะ
- (สิ่งที่ต้องทำ) เพิ่มประสิทธิภาพแอพโลหะและเกมด้วยเคาน์เตอร์ GPU
- (สิ่งที่ต้องทำ) ซื้อสินค้าออนไลน์ด้วย AR Quick Look
- (สิ่งที่ต้องทำ) รับข้อมูลเชิงลึกลงในแอพโลหะของคุณด้วย xcode 12
- สำรวจ Arkit 4
- (สิ่งที่ต้องทำ) มีอะไรใหม่ใน RealityKit
- (สิ่งที่ต้องทำ) มีอะไรใหม่ใน USD
- (สิ่งที่ต้องทำ) ความก้าวหน้าในตัวควบคุมเกม
- (สิ่งที่ต้องทำ) สร้างไบนารี GPU ด้วยโลหะ
- (to-do) ข้อผิดพลาดในการดีบัก GPU-side ในโลหะ
- (สิ่งที่ต้องทำ) นำแป้นพิมพ์และเกมเมาส์มาที่ iPad
- (สิ่งที่ต้องทำ) แตะลงในศูนย์เกม: แดชบอร์ด, จุดเชื่อมต่อและโปรไฟล์
- (สิ่งที่ต้องทำ) แตะเข้าไปในศูนย์เกม: ลีดเดอร์บอร์ดความสำเร็จและผู้เล่นหลายคน
- (สิ่งที่ต้องทำ) สนับสนุนแอพและเกมที่ใช้ประสิทธิภาพมาก
- (สิ่งที่ต้องทำ) นำแอพโลหะของคุณไปที่ Apple Silicon Macs
- (สิ่งที่ต้องทำ) เพิ่มประสิทธิภาพการทำงานของโลหะสำหรับ Apple Silicon Macs
- (สิ่งที่ต้องทำ) การจับภาพและสตรีมแอพบน Mac ด้วย replaykit
- (สิ่งที่ต้องทำ) ค้นพบคำแนะนำการค้นหาสำหรับ Apple TV
- เร่งแอปของคุณด้วย CarPlay
- (สิ่งที่ต้องทำ) มีอะไรใหม่ในการสตรีมเสียงสำหรับ Apple Watch
- (สิ่งที่ต้องทำ) มีอะไรใหม่ในการจัดการอุปกรณ์ Apple
- (สิ่งที่ต้องทำ) การออกแบบสำหรับตัวชี้ iPados
- (สิ่งที่ต้องทำ) จัดการไลบรารีรูปภาพที่ จำกัด ในแอพของคุณ
- (สิ่งที่ต้องทำ) สร้างรูปแบบการถ่ายโอนรูปภาพและวิดีโอในการสร้าง ML
- (สิ่งที่ต้องทำ) สร้างมุมมอง Swiftui ในสนามเด็กเล่นที่รวดเร็ว
- (สิ่งที่ต้องทำ) ใช้ Swift on aws lambda กับ xcode
- (สิ่งที่ต้องทำ) รองรับผู้ใช้หลายคนในแอพ TVOS ของคุณ
- (สิ่งที่ต้องทำ) มีอะไรใหม่ในเว็บตรวจสอบ
- (สิ่งที่ต้องทำ) กลายเป็นผู้เชี่ยวชาญด้านการจำลอง
- (สิ่งที่ต้องทำ) Swift ที่ไม่ปลอดภัย
- (สิ่งที่ต้องทำ) เพิ่มมุมมองที่กำหนดเองและตัวดัดแปลงไปยังไลบรารี XCode
- (to-do) ซิงค์ที่เก็บข้อมูลหลักกับฐานข้อมูลสาธารณะ CloudKit
- มีอะไรใหม่ใน App Store Connect
- พบกับตัวเลือกรูปภาพใหม่
- (สิ่งที่ต้องทำ) ตรวจจับร่างกายและท่าทางด้วยการมองเห็น
- (สิ่งที่ต้องทำ) สร้างเนื้อหาสนามเด็กเล่นที่รวดเร็วสำหรับ iPad และ Mac
- (สิ่งที่ต้องทำ) ค้นพบวิธีดาวน์โหลดและเล่น HLS ออฟไลน์
- (สิ่งที่ต้องทำ) นอกเหนือจากขั้นตอนการนับ
- (สิ่งที่ต้องทำ) ทำให้แอพฉลาดขึ้นด้วยภาษาธรรมชาติ
- (สิ่งที่ต้องทำ) มีอะไรใหม่ในด้านการศึกษา
- (to-do) แนะนำการทดสอบ storekit ใน xcode
- (สิ่งที่ต้องทำ) มีอะไรใหม่ในสถานที่
- (สิ่งที่ต้องทำ) มีอะไรใหม่กับการซื้อในแอป
- มีอะไรใหม่ในกระเป๋าเงินและ Apple Pay
- (สิ่งที่ต้องทำ) มีอะไรใหม่สำหรับนักพัฒนาเว็บ
- (สิ่งที่ต้องทำ) การเริ่มต้นกับ HealthKit
- (สิ่งที่ต้องทำ) พบกับส่วนขยายเว็บ Safari
- (สิ่งที่ต้องทำ) การอัพเกรดความปลอดภัยของบัญชีแตะครั้งเดียว
- (to-do) การกระจายแอพที่กำหนดเองกับ Apple Business Manager
- (สิ่งที่ต้องทำ) พบกับปฏิสัมพันธ์ใกล้เคียง
- (สิ่งที่ต้องทำ) การจัดการ FHIR โดยไม่ถูกเผา
- (สิ่งที่ต้องทำ) Meet Face ID และ Touch ID สำหรับเว็บ
- (to-do) สถาปัตยกรรมสำหรับการสมัครสมาชิก
- (สิ่งที่ต้องทำ) มีอะไรใหม่ใน Classkit
- (สิ่งที่ต้องทำ) สำรวจ APIs คอมพิวเตอร์วิสัยทัศน์
- (สิ่งที่ต้องทำ) สร้างความไว้วางใจผ่านความเป็นส่วนตัวที่ดีขึ้น
- (สิ่งที่ต้องทำ) สร้างโมเดล ML ที่กำหนดเองด้วยกราฟ Shaders Metal Performance
- (to-do) ปรับแต่งเฟรมเวิร์ก Objective-C สำหรับ Swift
- (สิ่งที่ต้องทำ) สำรวจสถาปัตยกรรมระบบใหม่ของ Apple Silicon Macs
- (to-do) การทดสอบ triage ล้มเหลวด้วย XCTISSUE
ขยายระบบอัตโนมัติด้วย App Store Connect API
https://developer.apple.com/wdc20/10004
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
มีอะไรใหม่ในการประเมิน
https://developer.apple.com/wdc20/10005
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
แนะนำกุญแจรถ
https://developer.apple.com/wdc20/10006
ผู้นำเสนอ: Matthias Lerch
- ผู้คนสามารถปลดล็อกล็อคและสตาร์ทรถ (iPhone หรือ Apple Watch)
- เก็บไว้อย่างปลอดภัยบนอุปกรณ์และสามารถลบได้ผ่าน iCloud
- กุญแจสามารถแบ่งปันกับครอบครัวหรือเพื่อนได้
- Agnostic to Radio Technology ( รองรับ NFC จนถึงตอนนี้ )
- ความสามารถออฟไลน์
- รถยนต์จำเป็นต้องสนับสนุน:
- การจับคู่เจ้าของ (เชื่อมโยงถ้า iPhone และ Car)
- พิสูจน์ความเป็นเจ้าของรถยนต์
- เริ่มการจับคู่
- วาง iphone ใกล้กับเครื่องอ่าน NFC ของรถยนต์
- คีย์รถยนต์ปรากฏในกระเป๋าเงิน
- ธุรกรรม (ปลดล็อคล็อคเริ่มรถ)
- เครื่องอ่าน NFC ในมือจับประตูและแดชบอร์ด (เริ่มเครื่องยนต์)
- ปรับให้เหมาะสมเพื่อความปลอดภัยและประสิทธิภาพ
- โหมดด่วนช่วยให้คุณลักษณะทำงานได้โดยไม่ต้องใช้ Face ID หรือรหัสผ่าน (เปิดตามค่าเริ่มต้น)
- iPhone และ Car สามารถออฟไลน์ได้
- แอปเปิ้ลไม่รู้เมื่อคุณใช้รถของคุณ
- อินเทอร์เฟซเซิร์ฟเวอร์ (การแชร์คีย์การจัดการคีย์)
- แชร์คีย์ผ่านข้อความ
- รถยนต์สามารถออฟไลน์ได้เมื่อแบ่งปัน
- Apple ไม่ทราบว่าคุณแชร์คีย์รถของคุณกับใคร
- ระดับการเข้าถึงเสริม (เช่น 'ปลดล็อคและไดรฟ์', 'เข้าถึงและขับได้สูงสุด 65 ไมล์ต่อชั่วโมง')
- ขึ้นอยู่กับผู้ผลิตรถยนต์แต่ละรายเพื่อกำหนดระดับการเข้าถึง
- การจัดการที่สำคัญ
- จัดการเจ้าของและแชร์คีย์จาก iPhone หรือ Car
- ปุ่มลบออกจากอุปกรณ์หยุดทำงานทันที (แม้ว่าอุปกรณ์จะออฟไลน์)
- เปลี่ยนอุปกรณ์เจ้าของง่าย (เช่นเมื่อซื้อ iPhone ใหม่)
- สถาปัตยกรรมระบบ
- รวมเข้ากับ iOS อย่างเต็มที่
- คีย์สร้างและจัดเก็บในองค์ประกอบที่ปลอดภัยและไม่เคยส่งออก
- คุณสมบัติทั้งหมดใช้ AES และการเข้ารหัสเส้นโค้ง Eleptic
- การออกแบบออฟไลน์ขึ้นอยู่กับ PKI
- Automaker TSM (ผู้จัดการบริการที่เชื่อถือได้) ไม่จำเป็นสำหรับการรวมเซิร์ฟเวอร์อย่างง่าย
- คีย์รถยนต์ดิจิตอลคืออะไร?
- ถูกเบี่ยงเบนไปยังอุปกรณ์ของผู้ใช้
- คีย์ส่วนตัว (SK) ไม่เคยออกจาก SE (องค์ประกอบที่ปลอดภัย)
- คีย์สาธารณะจะถูกส่งออกในใบรับรอง X.509 สำหรับการตรวจสอบ
- แอปเพล็ต
- ใช้กุญแจรถในองค์ประกอบที่ปลอดภัย
- จัดเก็บคู่คีย์, คีย์สาธารณะรถยนต์, กล่องจดหมายที่ปลอดภัย
- ปุ่มรถยนต์ทั้งหมดที่โฮสต์ในอินสแตนซ์เดียว
- FLOW การจับคู่เจ้าของ (ออนไลน์)
- เครื่องตรวจสอบ Pake
- การจับคู่รหัสผ่าน
- การจับคู่
- การเชื่อมโยงการเข้ารหัส
- การเปิดใช้งาน/การลงทะเบียนที่สำคัญ
- การยืนยันที่สำคัญ
- โฟลว์การแชร์คีย์
- เจ้าของส่งคำเชิญโดยใช้ข้อความ
- คีย์ใหม่ที่อยู่ใน
- ห่วงโซ่ใบรับรองข้อมูลประจำตัว
- การยืนยันเจ้าของ
- กลับมารับรอง
- การลงทะเบียนแบบออฟไลน์
- วงจรชีวิตของคีย์รถยนต์
- สร้างขึ้นระหว่างการจับคู่เจ้าของหรือการแบ่งปันคีย์
- การทำธุรกรรม
- สารแขวนลอย
- การเพิกถอน
- การลบ
- ใบรับรองและธุรกรรม
- การแบ่งปันเจ้าของการแบ่งปันคีย์การทำธุรกรรมที่รวดเร็วและมาตรฐาน
- ลองดูกระแสและแผนการที่นำเสนอให้ลึกขึ้นเวลา 11:30 น
- เทคโนโลยีวิทยุ
- NFC
- ขึ้นอยู่กับเครื่องอ่าน NFC มาตรฐาน
- Enhanced Prontsless Protocol (ECP)
- เปิดใช้งานประสบการณ์ NFC อัตโนมัติอย่างสมบูรณ์
- ตัวระบุที่มีอยู่ก่อนที่การทำธุรกรรมจะเริ่ม (ประเภทเครื่องอ่าน, Automaker)
- การสำรวจผู้อ่านที่มีประสิทธิภาพ
- กว้างเป็นพิเศษ
- iphone พร้อมชิป U1
- ใช้กับ iphone ในกระเป๋าหรือกระเป๋า
- สถาปัตยกรรมการจัดการคีย์ทั่วไป
- ข้อมูลจำเพาะอยู่ในระหว่างการพัฒนา
- การรวมเซิร์ฟเวอร์
- จำเป็นสำหรับการจัดการคีย์ระยะไกล
- เซิร์ฟเวอร์ Auto Maker จำเป็นต้องสร้างการเชื่อมต่อกับแบ็กเอนด์ของ Apple (สำหรับแต่ละสภาพแวดล้อมเช่นการทดสอบและการผลิต)
- ใบรับรองการแลกเปลี่ยน
- ใช้งานและทดสอบอินเทอร์เฟซเซิร์ฟเวอร์ (ลงทะเบียนคีย์ใหม่เพิกถอนคีย์ส่งการแจ้งเตือน)
- จัดหางานศิลปะ
- เชื่อมต่อกับแอป Automaker
- แอพผู้ผลิตรถยนต์
- ให้คุณสมบัติที่กำหนดเองโดยใช้คีย์ที่เก็บไว้ในกระเป๋าเงิน
- เริ่มการจับคู่เจ้าของ
- มีให้สำหรับผู้ผลิตรถยนต์
- จำเป็นต้องมีสิทธิ์
- ใช้ PassKit APIS
- วิธีเริ่มต้น (สำหรับผู้ผลิตรถยนต์)
- Consortium Connectivity CAR
- ข้อมูลจำเพาะคีย์ดิจิตอล 2.0
- ข้อมูลจำเพาะคีย์ดิจิตอล 3.0 (ในการพัฒนาจะรองรับ Ultra Wideband)
- carconnectivity.org
- โปรแกรม entroll to Apple MFI
เพิ่มประสิทธิภาพไปป์ไลน์รูปภาพหลักสำหรับแอพวิดีโอของคุณ
https://developer.apple.com/wdc20/10008
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
แก้ไขและเล่นวิดีโอ HDR ด้วย avfoundation
https://developer.apple.com/wdc20/10009
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
ส่งออกสื่อ HDR ในแอพของคุณด้วยการอวาท
https://developer.apple.com/wdc20/10010
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
ผู้แต่งเนื้อหา MPEG-4 ที่แยกส่วนกับ AvassetWriter
https://developer.apple.com/wdc20/10011
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
ค้นพบการติดตามเรย์ด้วยโลหะ
https://developer.apple.com/wdc20/10012
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
ทำความรู้จักกับพอยน์เตอร์ฟังก์ชั่นโลหะ
https://developer.apple.com/wdc20/10013
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
ข้อมูลหลัก: sundries และ maxims
https://developer.apple.com/wdc20/10017
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
การเข้าถึงแอพสำหรับการควบคุมสวิตช์
https://developer.apple.com/wdc20/10019
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
ทำให้แอพของคุณสามารถเข้าถึงได้ด้วยสายตา
https://developer.apple.com/wdc20/10020
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
สร้างเคอร์เนลรูปภาพหลักที่ใช้โลหะด้วย xcode
https://developer.apple.com/wdc20/10021
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
สร้างประสบการณ์การพูดที่ไร้รอยต่อในแอพของคุณ
https://developer.apple.com/wdc20/10022
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
รายการใน UICollectionView
https://developer.apple.com/wdc20/10026
ผู้นำเสนอ: Michael Ochs
- รายการในมุมมองคอลเลกชัน iOS 14 นำเสนอ
UITableView -ปรากฏตัวใน UICollectionView - การสนับสนุนการปรับขนาดด้วยตนเองที่ดีขึ้น: ตอนนี้เริ่มต้นเมื่อใช้รายการใน
UICollectionView- สร้างเซลล์ด้วย autolayout และให้มุมมองคอลเลกชันเข้าครอบครอง
- แทนที่
preferredLayoutAttributesFittingAttributes: บนคลาสย่อยของเซลล์เพื่อใช้การปรับขนาดด้วยตนเอง
- UICollectionLayOutListConfiguration
- ประเภทใหม่ที่จำเป็นในด้านเค้าโครงเพื่อสร้างรายการในมุมมองคอลเลกชัน
- สร้างขึ้นที่ด้านบนของ
NSCollectionLayoutSection และ UICollectionViewCompositionalLayout : ตรวจสอบความก้าวหน้าในรูปแบบมุมมองคอลเลกชัน - เพิ่มสองรูปแบบรายการพิเศษ:
.sidebar และ .sidebarPlain สำหรับการสร้างแอพหลายคอลัมน์บน iPados 14 - ตัวเลือกในการแสดง/ซ่อนตัวคั่นและกำหนดค่าส่วนหัว/ส่วนท้ายของรายการ
- การสร้างรายการ
- วิธีง่ายๆ
- สร้าง
UICollectionLayoutListConfiguration - สร้าง
UICollectionViewCompositionalLayout ด้วยการกำหนดค่า
- การตั้งค่าต่อส่วน
- สร้าง
UICollectionLayoutListConfiguration - สร้าง
NSCollectionLayoutSection ด้วยการกำหนดค่า - วางรหัสด้านบนภายในส่วนผู้ให้บริการที่มีอยู่เริ่มต้นบนเค้าโครงองค์ประกอบ
- ปรับแต่งเค้าโครงตามส่วนหนึ่งส่วน
- การกำหนดค่าส่วนหัวส่วนหัว/ส่วนท้าย
- รายการส่วนหัว/ส่วนท้ายจะต้องเปิดใช้งานอย่างชัดเจน
- ลงทะเบียนส่วนหัว/ส่วนท้ายเป็นมุมมองเพิ่มเติม
- ตั้งค่าโหมดการกำหนดค่าส่วนหัว/ส่วนท้ายเป็น 'เสริม'
- ให้มุมมองเพิ่มเติม เมื่อแสดงส่วนหัว/ส่วนท้ายบนหน้าจอ
- ตั้งค่า
headerMode เป็น firstItemInSection (ส่วนหัวเท่านั้น)- กำหนดค่าเซลล์มุมมองคอลเลกชันแรกให้ดูเหมือนส่วนหัว
- แนะนำสำหรับโครงสร้างข้อมูลลำดับชั้นและ API สแนปชอต: ตรวจสอบความก้าวหน้าในแหล่งข้อมูลที่แตกต่างกัน
- แหล่งข้อมูลจำเป็นต้องตระหนักถึงเซลล์แรกที่เป็นส่วนหัว
- uicollectionViewListCell
- คลาสย่อยของ
UICollectionViewCell สามารถใช้แทนกันได้ - รองรับดีกว่าในการกำหนดค่าตัวคั่นและการเยื้องเนื้อหาของเซลล์
- คุณลักษณะการดำเนินการปัด
- อุปกรณ์เสริมที่ดีกว่า API
- ได้รับการเข้าถึงเนื้อหาระบบเริ่มต้น/การกำหนดค่าพื้นหลัง: ตรวจสอบการกำหนดค่าเซลล์ที่ทันสมัย
- คู่มือเค้าโครงตัวแยก
- ตัวคั่นควรสอดคล้องกับเนื้อหาเซลล์ หลัก
- จำกัด คู่มือเค้าโครงนี้เกี่ยวกับเนื้อหา: ตรงข้ามกับคู่มือเลย์เอาต์ UIKIT
- กำหนดค่าเค้าโครงของเซลล์
- จำกัด ตัวยึดเค้าโครงของตัวคั่นนำไปสู่จุดยึดชั้นนำของเนื้อหาหลักของเซลล์
- จัดการโดยอัตโนมัติเมื่อใช้ระบบที่ให้การกำหนดค่าเนื้อหา
- การปัดการกระทำ
- รองรับเฉพาะในกรณีที่เซลล์จะแสดงผลภายในส่วนที่กำหนดค่าโดยใช้การกำหนดค่ารายการ
- แทนที่ Getter การกำหนดค่าการตั้งค่าของ Swipe Action ชั้นนำ/ต่อท้ายเพื่อกำหนดค่า
- ข้อควรระวัง : อย่าจับภาพเส้นทางดัชนี (ไม่เสถียร) ของเซลล์ที่ถูกกำหนดค่าในตัวจัดการการกระทำ
- จับภาพโมเดลข้อมูลโดยตรง
- จับตัวระบุที่มั่นคงของเซลล์:
- แหล่งข้อมูลที่แตกต่างและตัวระบุรายการที่มีเสถียรภาพ
- ประเภทการลงทะเบียนเซลล์ใหม่ใน iOS 14: uicollectionViewListCell
- อุปกรณ์เสริม API ของรายการรายการ
- ตัวเลือกในการกำหนดค่าทั้งด้านนำและด้านข้างของเซลล์
- กำหนดค่าอุปกรณ์เสริมหลายอย่างในด้านเดียวกัน
- functionalities ในรายการอุปกรณ์เสริมเซลล์
- การสั่งซื้ออุปกรณ์เสริมอีกครั้ง: เซลล์จะอยู่ในโหมด RODERING โดยอัตโนมัติเมื่อแตะ
- ลบอุปกรณ์เสริม: เซลล์จะเผยให้เห็นการกระทำที่ลื่น
- เค้าร่างอุปกรณ์เสริมการเปิดเผยข้อมูล
- เซลล์สื่อสารกับแหล่งข้อมูลโดยอัตโนมัติและขยาย/ยุบลูก ๆ เมื่อแตะ
- ต้องการส่วนใหม่ Snapshot APIs: ตรวจสอบความก้าวหน้าในแหล่งข้อมูลที่แตกต่างกัน
- มีค่าเริ่มต้นของระบบจำนวนมากในขณะที่การปรับแต่งจะถูกเก็บไว้
การกำหนดค่าเซลล์ที่ทันสมัย
https://developer.apple.com/wdc20/10027
ผู้นำเสนอ: Tylor Fox
- เริ่มต้นด้วยการกำหนดค่า
- ใน iOS 13 เราใช้คุณสมบัติ ImageView และ TextLabel ในตัวบน
UITableViewCell เพื่อแสดงภาพและข้อความบางส่วน - ใน iOS 14 เราใช้การกำหนดค่าเนื้อหาเพื่ออธิบายลักษณะที่ปรากฏของเซลล์สำหรับสถานะเฉพาะ
- นี่คือวิธีที่คุณกำหนดค่าเซลล์โดยใช้การกำหนดค่าเนื้อหา:
-
var content = cell.defaultContentConfiguration() สิ่งนี้จะส่งคืนการกำหนดค่าใหม่โดยไม่ต้องตั้งค่าเนื้อหาใด ๆ ไม่จำเป็นต้องคิดถึงรัฐเก่าเลย - ตั้งค่ารูปภาพและข้อความบนการกำหนดค่าเนื้อหา
-
cell.contentConfiguration = content ทันทีที่เราเรียกสิ่งนี้เซลล์จะได้รับการอัปเดตเพื่อแสดงภาพและข้อความที่เราระบุ
- รหัสเดียวกันเพื่อกำหนดค่าเซลล์ใด ๆ และมุมมองใด ๆ ที่รองรับการกำหนดค่าเนื้อหา
- คอมโพสิตน้ำหนักเบาราคาไม่แพงมากในการสร้างและสร้างขึ้นเพื่อการแสดง
- ประเภทการกำหนดค่า
- การกำหนดค่าพื้นหลัง
- ให้คุณตั้งค่าสิ่งต่าง ๆ เช่นสีพื้นหลังเอฟเฟกต์ภาพโรคหลอดเลือดสมองสิ่งที่ใส่เข้าไปรัศมีมุมและมุมมองที่กำหนดเอง
- รายการการกำหนดค่าเนื้อหา
- ให้คุณตั้งค่าสิ่งต่าง ๆ เช่นรูปภาพข้อความข้อความรองการวัดเค้าโครงและพฤติกรรม
- สถานะการกำหนดค่า
- สถานะการกำหนดค่าแสดงถึงอินพุตต่าง ๆ ที่คุณใช้ในการกำหนดค่าเซลล์และมุมมองของคุณ
- แต่ละเซลล์ส่วนหัวและส่วนท้ายมีสถานะการกำหนดค่าของตัวเอง
- สองประเภท
- ดูสถานะการกำหนดค่า
- คอลเลกชันลักษณะ
- 4 รัฐ: ไฮไลต์เลือกปิดใช้งานและมุ่งเน้น
- สถานะที่กำหนดเอง: นี่คือที่เก็บคีย์-ค่าเพื่อเพิ่มสถานะพิเศษหรือข้อมูลที่ใช้ในการกำหนดค่ามุมมองของคุณ
- สถานะการกำหนดค่าเซลล์
- ทุกอย่างจากสถานะการกำหนดค่ามุมมอง
- การแก้ไขกวาดขยายออกไป
- ลากและวางสถานะ
- เมื่อ
automaticallyUpdatesContentConfiguration เป็นจริงเซลล์จะเรียก updated(for:) ในการกำหนดค่า contentConfiguration เมื่อการกำหนดค่าของเซลล์เปลี่ยนไปและใช้การกำหนดค่าที่อัปเดตกลับไปยังเซลล์ ค่าเริ่มต้นเป็นจริง - เมื่อ
automaticallyUpdatesBackgroundConfiguration เป็นจริงเซลล์จะเรียก updated(for:) บนพื้นหลังการกำหนดค่าเมื่อการกำหนดค่าของเซลล์เปลี่ยนไปและใช้การกำหนดค่าที่อัปเดตกลับไปยังเซลล์ ค่าเริ่มต้นเป็นจริง - คุณสามารถแทนที่
updateConfiguration(using:) เพื่ออัปเดตและปรับแต่งการกำหนดค่าเนื้อหาด้วยตนเองปิดใช้งานการอัปเดตอัตโนมัติโดยการตั้งค่าคุณสมบัตินี้เป็นเท็จ วิธีนี้เรียกว่าก่อนที่เซลล์ของคุณจะปรากฏขึ้นเป็นครั้งแรกและจะถูกเรียกว่าตลอดเวลาที่สถานะการกำหนดค่ามีการเปลี่ยนแปลง
พบกับ widgetkit
https://developer.apple.com/wdc20/10028
ผู้นำเสนอ: Nahir Khan, Neil Desai
- ขณะนี้วิดเจ็ตใช้ในทุกแพลตฟอร์ม
- วิดเจ็ตที่ยอดเยี่ยมมีความน่าดึงดูดมีความเกี่ยวข้องและเป็นส่วนตัว
- สแต็คอัจฉริยะ เป็นคอลเลกชันของวิดเจ็ตและแสดงชุดที่เหมาะสมโดยอัตโนมัติโดยใช้หน่วยสืบราชการลับในอุปกรณ์
- วิดเจ็ตสนับสนุน การกำหนดค่า โดยการแตะ - นี่คือการรับรู้โดยใช้ เจตนา คล้ายกับ Sirikit
- เช่นการเลือกเมืองในแอพสภาพอากาศ
- UI สร้างขึ้นใน Swiftui ทั้งหมด
- WidgetKit ทำงานอย่างไร
- ส่วนขยาย WidgetKit เป็นส่วนขยายพื้นหลัง
- พวกเขากลับมาชุดลำดับชั้นของมุมมองในเส้นเวลา
- Time Line ถูกส่งไปยังหน้าจอหลักซึ่งนำเสนอมุมมองที่เหมาะสมในเวลาที่เหมาะสม
- เนื่องจากมุมมองเป็น "พร้อม" พวกเขาสามารถนำกลับมาใช้ใหม่ได้ที่จุดต่าง ๆ ในระบบเช่นแกลเลอรีวิดเจ็ต
- สายเวลาได้รับการรีเฟรชจากแอพหลักและการอัปเดตถูกกำหนดโดยการขยาย
- ลองนึกภาพเส้นเวลาปฏิทินสำหรับวัน เหตุการณ์หนึ่งได้รับการอัปเดตจากปฏิทินซึ่งจะปลุกส่วนขยายและให้สายเวลาใหม่
- การสร้างวิดเจ็ต
- ส่วนขยายวิดเจ็ตเดี่ยวรองรับวิดเจ็ตหลายชนิดบนแพลตฟอร์มต่างๆ
- การกำหนดค่าที่เป็นไปได้:
Static (วิดเจ็ตการออกกำลังกาย) หรือ Intent-Based (วิดเจ็ตเตือนความจำที่สามารถปรับเปลี่ยนได้) - ครอบครัวที่ได้รับการสนับสนุน: วิดเจ็ตสามารถเปิดใช้งานหนึ่งหรือหลายครอบครัวต่อไปนี้:
systemSmall , systemMedium , systemLarge - วิดเจ็ตโครงสร้างจะต้องสอดคล้องกับ
Widget และร่างกายของมันเป็น WidgetConfiguration - วิธีสร้างประสบการณ์ที่น่าดึงดูดใจ
- วิดเจ็ต ไม่ใช่ แอพขนาดเล็กที่พวกเขาค่อนข้างจะทำโปรเจ็กต์เนื้อหาบนหน้าจอหลัก
- ไม่มีการเลื่อน
- ไม่มีวิดีโอหรือภาพเคลื่อนไหว
- แตะการโต้ตอบไปยังลิงก์ลึกลงไปในแอพหลัก วิดเจ็ตเชื่อมโยงกับลิงค์ URL โดยใช้ Widgeturl API (ใช้ลิงค์ใหม่ของ Swiftui)
- มุมมองใหม่ที่สำคัญ:
-
Placeholder- ไม่ควรมีข้อมูลผู้ใช้
- ตัวยึดตำแหน่งที่ยอดเยี่ยม UIS แสดงการแสดงข้อมูลของคุณแบบไหน
-
Snapshot- เป็นตัวแทนของรายการเดียวในเวลา
- ควรส่งคืนมุมมองโดยเร็วที่สุด
- ใช้เพื่อแสดงวิดเจ็ตของคุณในแกลเลอรี่
- ใช้เป็นรายการแรกในสายเวลาของคุณเพื่อให้ผู้ใช้ได้รับสิ่งที่พวกเขาเห็นในแกลเลอรี่
-
Time line- การรวมกันของมุมมองและวันที่
- เอาท์พุทหากส่วนขยายของ WidgetKit ถูกทำให้เป็นอนุกรมไปยังดิสก์ซึ่งเปิดใช้งานการแสดงผลแต่ละรายการในเวลา
- โหลดใหม่
- ปลุกส่วนขยายและขอเส้นเวลาใหม่
- ช่วยให้แน่ใจว่าเนื้อหาเป็นข้อมูลล่าสุด
- รับ
TimelineProvider โดย struct Provider: TimelineProvider- ใช้
func snapshot(...) และ func timeline(...) สำหรับการส่งคืนข้อมูลที่เกี่ยวข้อง - จัดเตรียมนโยบายการโหลดซ้ำเวลา cretion line cretion เพื่อบอกว่าเมื่อใดควรโหลดสายเวลา:
atEnd , after(date: Date) , never
- ระบบกำหนดเวลาที่ดีที่สุดในการโหลดวิดเจ็ตเช่นตาม:
- การแจ้งเตือนเบื้องหลัง
- การเปลี่ยนแปลงเวลาอย่างมีนัยสำคัญ
- การเปลี่ยนแปลงในแอพที่ทำโดยผู้ใช้เช่นรายการปฏิทินใหม่
- ใช้
WidgetCenter.[reloadTimelines(ofKind:), reloadAllTimelined] เพื่อโหลดเวลาการโหลดตามโปรแกรม - รับการกำหนดค่าปัจจุบันด้วย
WidgetCenter.getCurrentConfigurations(completion:)- ใช้คำขอแบทช์
- อย่าใช้เครือข่ายมากเกินไปจากวิดเจ็ต
- ใช้ตัวปรับเปลี่ยน
onBackgroundURLSessionEvents เพื่อเปิดงานเครือข่ายซึ่งส่งผลลัพธ์ไปยังส่วนขยายของคุณ- การโหลดใหม่มีงบประมาณโดยระบบอย่าใช้พวกเขามากเกินไป
- การทำให้เป็นส่วนตัว
- ใช้เฟรมเวิร์ก
Intents ที่รู้จักจาก Siri เพื่อปรับแต่งพฤติกรรมวิดเจ็ต - ใช้ การจัดการความตั้งใจในแอป ใหม่เพื่อตอบคำขอจากวิดเจ็ตของคุณ
-
IntentConfiguration ใช้ในการกำหนดค่าการกำหนดค่าวิดเจ็ตที่ใช้ความตั้งใจ -
IntentTimelineProvider ใช้เพื่อสร้างเส้นเวลาที่เฉพาะเจาะจง
- ปัญญา
- วิดเจ็ตจะปรากฏบนหน้าจอหลักโดยหน่วยสืบราชการลับระหว่างอุปกรณ์
- แอพของคุณสามารถบริจาคทางลัด
- การขยายวิดเจ็ตสามารถใส่คำอธิบายประกอบรายการสายเวลาโดยใช้
TimelineEntryRelevance ด้วยคะแนนและคุณสมบัติระยะเวลา
สแต็คกริดและโครงร่างใน Swiftui
https://developer.apple.com/wdc20/10031
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
สร้างมุมมอง Swiftui สำหรับวิดเจ็ต
https://developer.apple.com/wdc20/10033
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
Widgets Code-Along, ส่วนที่ 1: การผจญภัยเริ่มต้นขึ้น
https://developer.apple.com/wdc20/10034
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
Widgets Code-Along, ส่วนที่ 2: ระยะเวลาอื่น
https://developer.apple.com/wdc20/10035
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
Widgets Code-Along, ส่วนที่ 3: ระยะเวลาที่ก้าวหน้า
https://developer.apple.com/wdc20/10036
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
สิ่งจำเป็นแอพใน Swiftui
https://developer.apple.com/wdc20/10037
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
สร้างแอพที่ใช้เอกสารใน Swiftui
https://developer.apple.com/wdc20/10039
ผู้นำเสนอ: ตัวอย่าง Guy คนอื่น
สิ่งที่ต้องทำ คุณสามารถมีส่วนร่วมในเซสชั่นนี้โปรดดูการสนับสนุน. md
สิ่งจำเป็นข้อมูลใน Swiftui
https://developer.apple.com/wdc20/10040
ผู้นำเสนอ: Curt Clifton, Luca Bernardi, Raj Ramamurthy
- เริ่มต้น
- ถามคำถามต่อไปนี้เสมอ:
- มุมมองของฉันต้องการข้อมูลอะไร
- มุมมองจะจัดการวันนี้อย่างไร?
- ข้อมูลจะมาจากไหน?
- มุมมองที่ไม่เปลี่ยนรูปแบบที่เพียงแค่แสดงข้อมูลมีคุณสมบัติปล่อยเท่านั้น
- ดึงคุณสมบัติหลายอย่างใน วัตถุกำหนดค่า ของตนเอง
- วัตถุ config สามารถมีฟังก์ชั่นเพื่อกลายพันธุ์สถานะของมัน
- การใช้
@State private var config: ConfigObject() เพื่อแสดงมุมมองของคุณอีกครั้งหลังจากเปลี่ยน config - ให้มุมมองของผู้ปกครองและย่อยสื่อสารผ่านวัตถุ config เดียวโดยการแชร์โดยใช้
@Binding var config - ผ่าน
config ลงโดยทำเครื่องหมายว่าเป็นข้อมูลอ้างอิงโดยใช้สัญลักษณ์เงินดอลลาร์: SubView(config: $config)
- ข้อมูลการสร้างแบบจำลองโดยใช้ ObservableObject
- โปรโตคอลที่ จำกัด คลาส (ใช้ตามประเภทอ้างอิงเท่านั้น)
- สามารถใช้เพื่อให้บรรลุพฤติกรรมพิเศษของลูกค้าเช่น ข้อมูลการสำรองโดยบริการหรือเซิร์ฟเวอร์
- สอดคล้องโดยการใช้
var objectWillChange: Self.ObjectWillChangePublisher { get } - ใช้เพื่อ จัดการวงจรชีวิตข้อมูล จัดการผลข้างเคียง รวมเข้ากับส่วนประกอบที่มีอยู่
- จะเป็นแหล่งที่มาของความจริงของคุณ
- ไม่จำเป็นต้องเป็นแบบจำลองข้อมูลเต็มรูปแบบของคุณ - แบ่งออกเป็นวัตถุที่สังเกตได้หลายรายการหากโมเดลของคุณซับซ้อน
- ใช้ ObservableObject เดียวสำหรับมุมมองทั้งหมดของคุณหากโมเดลข้อมูลของคุณง่าย
- ทำเครื่องหมายคุณสมบัติของ ObservableObject ของคุณมุมมองของคุณมีความสนใจในฐานะ
@Published var progress: Double - วิธีการสร้างการพึ่งพาที่สังเกตได้?
-
@ObservedObject-
@ObservedObject var config: Configuration - คุณต้องจัดการความเป็นเจ้าของวัตถุนอกมุมมองของคุณ
- สร้างคุณสมบัติที่มีผลผูกพันกับคุณสมบัติประเภทใด ๆ ของ ObservableObject เพื่อส่งผ่านไปยังเช่น
$config.isFinished การควบคุม Toggle และปล่อยให้อัปเดตมุมมองของคุณโดยอัตโนมัติ
-
@StateObject- Swiftui เป็นเจ้าของ ObservableObject
- การสร้าง/การทำลายนั้นเชื่อมโยงกับวงจรชีวิตของดู
- อินสแตนซ์ก่อนที่ร่างกายจะวิ่ง
- ใช้เพื่อใช้งานเช่น
ImageLoader: ObservableObject ด้วย @published var image: Image - เมื่อ
@StateObject ก็ตาม
-
EnvironmentObject- ใน Swiftui คุณมักจะมีลำดับชั้นของมุมมองย่อยแบบแยกส่วนมากมาย
- เพื่อหลีกเลี่ยงแผ่นหม้อไอน้ำจำนวนมากโดยผ่านรอบ ๆ ObservableObject ไปยัง
.environmentObject(...) ในมุมมองรูทของคุณ - การเปลี่ยนแปลงจากมุมมองใด ๆ ในลำดับชั้นจะปรากฏในมุมมองอื่น ๆ
- การพิจารณาประสิทธิภาพของ Swiftui
- หลีกเลี่ยงการอัปเดตมุมมองช้า
- ทำให้ View Initializers ราคาถูกเช่นไม่มีการจัดส่ง
- ทำให้ร่างกายเป็นฟังก์ชั่นที่บริสุทธิ์
- หลีกเลี่ยงสมมติฐาน
- แหล่งเหตุการณ์ใหม่:
onChange , onOpenURL , onContinueUserActivity - ทำงานบนเธรดหลัก
- ใครเป็นเจ้าของข้อมูล?
- แบ่งปันข้อมูลในบรรพบุรุษร่วมกัน
- ใช้ประโยชน์
@StateObject - พิจารณาการวางข้อมูลทั่วโลกใน
App และส่งผ่านลำดับชั้นดู การเปลี่ยนแปลงจะแสดงฉาก ทั้งหมด (อินสแตนซ์/windows) ของแอปของคุณอีกครั้ง - ใหม่ 2020: wrappers ทรัพย์สินที่ให้ ข้อมูลการคงอยู่ของแอปรีสตาร์ท และสามารถใช้เป็นแหล่งที่มาของความจริง
-
@SceneStorage- wrapper ทรัพย์สินต่อสถานที่สำหรับการอ่าน/การเขียนข้อมูลที่จัดการโดย Swiftui
- ที่เก็บข้อมูลน้ำหนักเบาสำหรับข้อมูลมุมมองของคุณ
- ใช้เพื่อเติมมุมมองคอลเลกชันของคุณ
-
@AppStorage- พื้นที่จัดเก็บทั่วโลกของแอพพลิเคชันยังคงใช้งานอยู่โดยใช้
UserDefaults ใช้งานได้ทุกที่ (แอพ/มุมมอง) - เหมาะสำหรับการจัดเก็บการตั้งค่า
-
@AppStorage("amountOfGold") private var amountOfGold = 5000 - อ่าน/เขียนโดยอัตโนมัติจาก/ไปยังผู้ใช้ userdefaults เมื่อใดก็ตามที่คุณสมบัติเปลี่ยนไป
มีอะไรใหม่ใน Swiftui
https://developer.apple.com/wdc20/10041
ผู้นำเสนอ: Matt Ricketson, Taylor Kelly
- แอพพลิเคชั่น
- แอพทั้งหมดของคุณโดยใช้ Swiftui:
struct BookClubApp: App - แอพสามารถประกาศการพึ่งพาข้อมูล
- ใช้
WindowGroup เพื่อจัดการแพลตฟอร์ม Windows อิสระ รองรับหน้าต่างหลายบานบน macOS และ iPados ออกจาก BOS - ใช้
Settings เพื่อรับบานหน้าต่างการตั้งค่าฟรี•มีอยู่ใน macOS - ใช้ประเภท Scene Scene
DocumentGroup เพื่อจัดการการเปิดบันทึกและแก้ไขเอกสารโดยอัตโนมัติ• macOS, iOS, iPados โดยอัตโนมัติ - ใช้คำสั่ง
CommandMenu เพื่อเพิ่มเมนูเพิ่มเติมลงในแถบเมนูรวมถึงแป้นพิมพ์ลัด - เทมเพลตหลายแพลตฟอร์มใหม่โดยเฉพาะสำหรับแอพ Swiftui
-
LaunchScreen Info.plist Key เพื่อกำหนดค่าหน้าจอเปิดตัวของคุณ•ทางเลือกง่าย ๆ ไปยังกระดาน Storyboard
- วิดเจ็ต
- iOS, iPados, macOS สร้างขึ้นโดยเฉพาะโดยใช้ Swiftui
- ประกาศโดย
struct YourWidget: Widget และ var body: some WidgetConfiguration - ใช้ Swiftui เพื่อสร้างภาวะแทรกซ้อนที่กำหนดเองสำหรับ watchos
- รายการและคอลเลกชัน
- List now receive outlines to quickly access the lists content • reduces the need for push/pop navigation patterns
- Lazy loading grid layouts (
Lazy[V|H]Stack ) to reduce memory footprint and preserve smooth scrolling for large amounts of data - View Builder for switch statements to show eg different image styles in a list of images
- Toolbars and Controls
-
.toolbar modifier for unified display of toolbars - Use
ToolbarItem(placement: .principal) to make an item prominent - Use
ToolbarItem(placement: .bottomBar) to place an item in the bottom bar - When using
Label("Title", systemImage: "sf.symbol.name") SwiftUI automatically display icon and/or text depending on where the label is displayed: toolbar, list, ... -
.keyboardShortcut modifier can now be used for additional controls like Button - New default focus support in tvOS
- New controls:
-
ProgressView("Downloading", value: progress) - horizontal bar -
ProgressView("Downloading", value: progress).progressViewStyle(CircularViewStyle()) - circular progress indicator -
ProgressView() - spinner -
Gauge to indicate the level of value • can contain value labels and min/max value labels
- New effects and styling
- New control center UI with beautiful transitions
-
.matchedGeometryEffect to provide smooth animations inside of a grid of UI elements -
.clipShape(ContainerRelativeShape()) to automatically apply a super views shape to the subview - custom fonts automatically scaled with dynamic type changes
- Custom accent color directly form the AssetCatalog on all platforms
- Many controls can now be tinted
- System integration
- New
Link control to display URLs in link style and open them with the default browser • also supports url schemes to open other apps -
@Environment(.openURL) private var openURL to programmatically open urls via openURL(url) in your views -
onDrag {} and onDrop {} to support drag & drop -
UniformTypeIdentifers framework for eg introspection of file types -
Sign in with Apple as first class component in SwiftUI • available on every platform - Other Frameworks: AuthenticationServices , AVKit , MapKit , SceneKit , SpriteKit
Build SwiftUI apps for tvOS
https://developer.apple.com/wwdc20/10042
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build an Action Classifier with Create ML
https://developer.apple.com/wwdc20/10043
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Advances in diffable data sources
https://developer.apple.com/wwdc20/10045
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Create complications for Apple Watch
https://developer.apple.com/wwdc20/10046
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Enable encrypted DNS
https://developer.apple.com/wwdc20/10047
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build complications in SwiftUI
https://developer.apple.com/wwdc20/10048
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Keep your complications up to date
https://developer.apple.com/wwdc20/10049
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build with iOS pickers, menus and actions
https://developer.apple.com/wwdc20/10052
Presenters: Eric Dudiac, David Duncan
- UISlider and UIProgressView: More consistent across platforms now
- UIActivityIndicatorView: New simpler design, Use color API and modern styles, Updates "pull-to-refresh"
- UIPickerView: Updated styling
- UIPageControl
- New interactions (scrubbing, scrolling)
- Unlimited pages
- Optional custom indicator icons:
.preferredIndicatorImage(UIImage()) to set all or .setIndicatorImage(UIImage(), forPage: 0) for a specific image - Multiple styles:
.backgroundStyle = .prominent to highlight the background
- UIColorPickerViewController
- New view controller for picking colors
- Eyedropper, Favorites, Hex specification
- UIDatePicker
- New compact style to select date and time
- In-line style on iOS - great for iPad or if date picking is primary UI (matches modal presentation)
- Useful when you have space constraints
- Full modal calendar when selecting dates
- Keyboard for selecting times
- New macOS style (10.15.4)
- Compact, modal calendar presentation
- Supported in Catalyst apps
- Menus
- Provided on
UIControl - Directly supported by UIButton and UIBarButtonItem by
button.menu = UIMenu(...) - Triggered via long-press by default
- Show the menu by a simple tap by setting
button.showsMenuAsPrimaryAction = true and don't provide a primary action - Back buttons implement menus to quickly jump back in navigation stack
- Take action when the menu action is recognized, register for
UIControl.Event.menuActionTriggered -
UIDeferredMenuElement to async provide menu items -
UIContextMenuInteraction to modify or replace provided menu updateVisibleMenu(_ block menu: (UIMenu) -> UIMenu)- Use
UIContextMenuInteraction.rich to display previews and .compact to only show a menu
- New
UIBarButtonItem initializers init(systemItem:primaryAction:menu:) , init(title:image:primaryAction:menu:) - New
UIBarButtonItem .fixedSpace() and .flexibleSpace -
UIButton can finally be initialized using an UIAction : init(type:primaryAction:) -> native block based API -
UISegmentedControls can now finally be initialized using UIActions -> native block based API
Optimize the interface of your Mac Catalyst app
https://developer.apple.com/wwdc20/10056
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Identify trends with the Power and Performance API
https://developer.apple.com/wwdc20/10057
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design high quality Siri media interactions
https://developer.apple.com/wwdc20/10060
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Expand your SiriKit Media Intents to more platforms
https://developer.apple.com/wwdc20/10061
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Background execution demystified
https://developer.apple.com/wwdc20/10063
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in SiriKit and Shortcuts
https://developer.apple.com/wwdc20/10068
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Evaluate and optimize voice interaction for your app
https://developer.apple.com/wwdc20/10071
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Empower your intents
https://developer.apple.com/wwdc20/10073
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Decipher and deal with common Siri errors
https://developer.apple.com/wwdc20/10074
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Diagnose performance issues with the Xcode Organizer
https://developer.apple.com/wwdc20/10076
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Eliminate animation hitches with XCTest
https://developer.apple.com/wwdc20/10077
Presenter: Tanuja Mohan
- Hitch: A frame appears on screen later than expected
- VSYNC: Time the screen swaps the frame onto the display
- Hitch time: Time in ms that a frame is late to display
- Hitch ratio: Hitch time in ms per second for a given duration
- Apple doesn't use frames per second (fps) since:
- 60 or 120 fps is not always the desired target
- Display may intentionally not be updated
- Target frame rate may intentionally be lower than possible
- Hitch ratio is always comparable across tests, following ratios are recommended:
- Good: < 5ms/s
- Warning: 5..10ms/s - users will start recognizing hitches
- Critical: >10ms/s
- Can be measured using
XCTestMetrics and unit tests or for production apps using MetricsKit and Xcode Organizer -
XCTOSSignpostMetric gives you the following when using an animation os_signpost interval:- ระยะเวลา
- Total count of hitches
- Total duration of hitches
- Hitch time ratio
- อัตราเฟรม
- Frame count
- Specify an animation os_signpost interval by:
-
os_signpost(.animationBegin, log: logHandle, name: "performanceAnimationInterval") -
os_signpost(.end, log: logHandle, name: "performanceAnimationInterval")
- UIKit has pre-defined metrics:
-
XCTOSSignpostMetric.navigationTransitionMetric -
XCTOSSignpostMetric.customNavigationTransitionMetric -
XCTOSSignpostMetric.scrollDecelerationMetric -
XCTOSSignpostMetric.scrollDraggingMetric
- Application state can be reset to avoid tests influencing themselves:
XCTMeasureOptions().invocationOptions = [.manualStop] - Listen to a live testing session at 8:15
Why is my app getting killed?
https://developer.apple.com/wwdc20/10078
Presenter: Andy Aude
- Most common reasons why apps can be terminated in the background
- ชน
- Segmentation fault
- Illegal instruction
- Asserts and uncaught exceptions
- CPU resource limit
- High sustained CPU load in background
- Energy Exception Report
- Xcode Organizer
-
MXCPUExceptionDiagnostic
- Reports contain call stack points out hotspots in code
- Consider moving work into
BGProcessingTask
- Watchdog
- Long hang during key app transitions
-
application(_:didFinishLaunchingWithOptions:) -
applicationDidEnterBackground(_:) -
applicationWillEnterForeground(_:)
- These transitions have a time limit on the order of 20 seconds
- Terminations are disabled in Simulator and in the Debugger
- Eliminate deadlocks, infinite loops, synchronous work
- Report available via
MXCrashDiagnostic
- Memory limit exceeded
- App using too much memory
- Same limit for foreground and background
- Use Instruments and Memory Debugger
- Keep in mind older devices
- Memory pressure exit (jetsam)
- Not a bug with your app
- Most common termination
- System freeing up memory for active applications
- Reducing jetsame rate
- Aim for less than 50MB in background
- Upon background flush state to disk, clear out image views, drop caches
- Recovering from jetsame
- Save state upon entering background
- Adopt UIKit State Restoration
- User should not realize app was terminated
- Background task timeout
-
UIApplication.beginBackgroundTask(expirationHandler:) -
UIApplication.endBackgroundTask(_:) - Failure to end the task explicitly result in termination
- Counts exposed via
MXBackgroundExitData - Preventable
- Use the named variant of the UIKit API
beginBackgroundTask(withName:expirationHandler:) - Terminations do not occur in Debugger
- New console message in iOS 13.4 ( Background Task DatabaseTransaction was created over 30 seconds ago. In Applications running in the background, this creates a risk of termination. Remember to call
endBackgroundTask for your task in a timely manner to avoid this. )
- Expiration handler
- Implement an
expirationHandler - Call
endBackgroundTask(_:) inside the handler - Do not begin new work
- Do not rely on it exclusively
- Add telemetry at the start and end of each expiration handler
- Inspect
MXMetricPayload
- Check
backgroundTimeRemaining- Only start work if plenty of time remains
- Unsafe to begin tasks with < 5 seconds remaining
- Avoid leaking
UIBackgroundTaskIdentifier
- New MetricKit API (iOS 14)
-
MXBackgroundExitData shows how often these terminations happen providing counts of each termination type-
cumulativeBadAccessExitCount -
cumulativeIllegalInstructionExitCount -
cumulativeAbnormalExitCount -
cumulativeMemoryResourceLimitExitCount -
cumulativeMemoryPressureExitCount -
cumulativeSuspendedWithLockedFileExitCount -
cumulativeAppWatchdogExitCount -
cumulativeBackgroundTaskAssertionTimeoutExitCount -
cumulativeNormalExitCount
- Crash reporting via MetricKit
- Diagnostics on a per-device basis
- Ability to get crash info programmatically directly from the device
-
MXCrashDiagnostic- Stack trace
- สัญญาณ
- Exception code
- Termination reason
- Check out What's New in MetricKit to get detailed information
- How to improve multi-tasking experience?
- Identify and fix terminations
- Reduce memory usage
- Implement state restoration
What's new in MetricKit
https://developer.apple.com/wwdc20/10081
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Integrate your app with Wind Down
https://developer.apple.com/wwdc20/10083
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Feature your actions in the Shortcuts app
https://developer.apple.com/wwdc20/10084
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for intelligence: Apps, evolved
https://developer.apple.com/wwdc20/10086
Presenter: Mark Mikin
- This is one of those "why" sessions. Why we should build something?
- Intelligent System Experience
- The main idea is to be proactive
- Intelligence is how the OS works with the apps that people use every day to make the "every day" easier for people
- Intelligence is design (it should be viewed as a design practice)
- Living design . นั่นคืออะไร?
- The core job of the designer is to help people accomplish something
- One of the key ways a designer can leverage this is by using elements familiar to the user
- People use a signifier or a symbol
- For example, "Share" button. In the case of iOS, almost everyone can easily recognize the "default" share symbol because it consistently gets used across a lot of apps
- Intelligence is a platform convention, it's in a static glyph or icon, like the share button. It's live
- Intelligence manifests itself by adapting to how the system, the platform, conforms to how people use their devices
- Intelligence is expected (people expect their devices and apps to be smart)
- ความสามารถในการขยายได้
- Intelligence is powered by an app through extensibility
- Apps have actually been evolving over time
- A lot of the technologies built by Apple that are foundational to the intelligence system (starting from App Extensions debuted at WWDC 2014 and ending with App Clips so far)
- It's built to help growing ecosystem of devices and apps
- Intelligence system is built from a foundation of respecting users privacy
- In the next sessions about system intelligence, Apple's team will try to cover it from a few different angles
Design for intelligence: Make friends with "The System"
https://developer.apple.com/wwdc20/10087
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for intelligence: Discover new opportunities
https://developer.apple.com/wwdc20/10088
Presenters: JP Lacerda
- ปัญญา
- Goal to make your Apple products knowing/understanding you
- Achieve and Discover more, Less tedium, Fewer distraction
- System helps you through suggestions from Siri , Shortcuts , Suggestions , Widgets
- Siri / Shortcuts
- Helps you getting things done by a single tap or asking Siri
- Helps you setting up simple and complex operations ran, eg just by your voice
- View shortcuts through the new Siri suggestion Widget displayed just at the right time to you using the new smart stack and on-device intelligence
- Siri suggestions automatically appear at the right place and time, eg restaurant reservations are added automatically to the calendar
- Siri can remind you when it's time to leave right on your lock screen
- Get Siri suggestions in Maps to eg conveniently find your way to the Airport
- Privacy / Analytics
- Apple chose opt-in to enable analytics on your device to help improve their intelligence services
- ตัวอย่าง
- 82% of all notification-based check-ins come from suggestions (data from some Airline apps)
- Apps are visible on average 5x more per day via lock screen, sharing suggestion, search or other entry points
- Give your app superpowers
- Think about which entry points are suitable for your app
- Consider how you can measure the impact of intelligence on your app
- Understand intelligence from the users perspective
Discover Core Image debugging techniques
https://developer.apple.com/wwdc20/10089
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Decode ProRes with AVFoundation and VideoToolbox
https://developer.apple.com/wwdc20/10090
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Write tests to fail
https://developer.apple.com/wwdc20/10091
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build for the iPadOS pointer
https://developer.apple.com/wwdc20/10093
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Handle trackpad and mouse input
https://developer.apple.com/wwdc20/10094
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
The Push Notifications primer
https://developer.apple.com/wwdc20/10095
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore Packages and Projects with Xcode Playgrounds
https://developer.apple.com/wwdc20/10096
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Advances in UICollectionView
https://developer.apple.com/wwdc20/10097
Presenters: Steve Breen
- Diffable Data Source
- Recap
-
UICollectionView was first released in iOS 6 -
UICollectionView was built on the separation of concerns between the data, or the "what"; from the layout, the "where" content is being rendered. - For layout, an abstract class is
UICollectionViewLayout , and a concrete subclass is UICollectionViewFlowLayout . - For the presentation, there are
UICollectionViewCell and UICollectionReusableView . - In iOS 13, there are two new components for Data and Layout respectively with Diffable Data Source and Compositional Layout.
- Section snapshot [New in iOS 14]
- Allow data sources to be more composable into section-sized chunks of data.
- Allow modeling of hierarchical data, which is needed to support rendering outline-style UIs.
- Compositional Layout
- Recap
- Compositional Layout was introduced in iOS 13
- Allows us to build rich, complex layouts by composing smaller, easy-to-reason bits of layout together.
- Describes what the layout to look like instead of how the layout ought to work.
- Section-specific layouts to help you build more sophisticated UIs
- Support for orthogonal scrolling sections.
- Lists [New in iOS 14]
-
UITableView -like sections right in to any UICollectionView . - Rich with features you've come to expect from
UITableView , like swipe actions and many common cell layouts. - Easily mix and match Lists with other kinds of layout on a per-section basis.
- Concrete
UICollectionViewListCell , header and footer support - New Sidebar appearance we see in many iPadOS system apps.
- Modern Cells
- Cell registrations
- Simple, reusable way to set up a cell from a view model.
- Eliminate the extra step of registering a cell class or nib to associate it with a reuse identifier.
- Use a generic registration type which incorporates a configuration closure for setting up a new cell from a view model.
- Cell content configurations.
- Standardized layouts for cells similar to what is seen in
UITableView standard cell types. - Can be used with any cell, or even a generic UIView.
- Background configurations.
- Similar to content configurations but apply to any cell's background with the ability to adjust properties such as color, border styles and more.
What's new in Universal Links
https://developer.apple.com/wwdc20/10098
Presenter: Christopher Linn
- Universal Links
- HTTPS URLs that represent your content both on the web and in your app
- Allow to open your app instead of browser
- Enable by adding an entitlement to your app and a JSON file to your web server - creates secure association between both
- Custom URL schemes not recommended anymore - switch as soon as possible
- Support for watchOS
- Same functionalities like on iOS, tvOS and macOS
- Apply entitlement to your WatchKit extension - not your WatchKit App
- Use
[WKExtensionDelegate.handle(_ userActivity: NSUserActivity) -> Void](https://developer.apple.com/documentation/watchkit/wkextensiondelegate/2798966-handle) to handle Universal Links - Use
[WKExtension.shared().openSystemURL(url)](https://developer.apple.com/documentation/watchkit/wkextension/1628224-opensystemurl) to open Universal Links in other apps - Different API on iOS (UIKit) and macOS (AppKit)
- Universal Links in SwiftUI
- Now it is possible to handle Universal Links equally on all platforms
- Handle Universal Links using
.onOpenURL { url in /* ... */ } - Open Universal Links in other apps using
@Environment (.openURL) var openURL; let url = /* ... */; openURL(url)
- Enhanced Pattern Matching
-
* matches zero or more characters greedily -
? matches any one character -
*? matches at least one character -
"components": [{ "/": "/sourdough/?*", "caseSensitive": false }] for case-insensitive pattern matching (macOS Catalina 10.15.5 and iOS 13.5) -
"components": [{ "/": "/中國哲學書電子化計劃/?*", "percentEncoded": false }] for Unicode pattern matching (macOS Big Sur and iOS 14) -
"defaults": { "percentEncoded": false, "caseSensitive": false } to specify defaults for all components (macOS Big Sur and iOS 14)- Apply
defaults to "details" (includes app IDs and components) or only to "components" to match all elements of the respective arrays
- Substitution Variables
- Named lists of substrings to match against
- Names can contain anything but
$ , ( , ) - Names are always case sensitive in patterns
- Values can contain
? and * but no other substitution variables - Values are case-sensitive by default
- Available today in macOS Catalina 10.15.6 and iOS 13.5
- Predefined Substitution Variables
-
$(alpha)* - match upper and lower case letters -
$(upper),$(lower)* - match either upper or lower case letters -
$(alnum)* - match upper and lower case letters including digits -
$(digit),$(xdigit)* - match either digits or hexadecimal digits -
$(region)** - match every ISO region code defined by Foundation: Locale.isoRegionCodes -
$(lang)** - match every ISO language code defined by Foundation: Locale.isoLanguageCodes - Use
"exclude": true to exclude specific patterns - Substitution variables can be used to form different combinations of patterns, eg show different menus for different countries
- ตัวอย่าง
{
"appLinks" : {
"substitutionVariables" : {
"food" : [ " burrito " , " sushi " ],
"Canadian food" : [ " burrito " , " poutine " , " tête-de-violon " ]
},
"details" : [{
"appIDs" : [ " ABCDEF.com..example.restaurant " ],
"components" : [
{ "/" : " $(lang)_CA/$(Canadian food)/ " , "percentEncoded" : false }
{ "/" : " $(lang)_CA/$(food)/ " , "exclude" : true }
{ "/" : " $(lang)_$(region)/$(food)/ " }
]
}]
}
}
- Universal Links Workflow
- After download of an app the system checks its entitlements to see if it needs any app-association files, and downloads them
- App association files can now be downloaded in parallel by connecting to an Apple CDN instead of opening one connection per downloaded app
- CDN is dedicated to associated domains
- CDN uses single HTTP/2 connection for all associated domains on a device
- CDN Reduces load on your server
- CDN routes devices to a known-good, known-fast connection
- Alternate Modes for internal domains not reachable from an Apple CDN
- Managed Mode when distributing within your organization (see What's New in Managing Apple Devices (WWDC20))
- System trusted root certificate
- MDN admin must opt-in
- Works using any profile
- Developer Mode when building your app
- Use any SSL certificate
- User must opt-in from
iOS Settings > Developer > Associated Domains Development or for macOS using the command swcutil developer-mode -e true - Only works using a development profile
- Server path for all modes:
https://example.com/.well-known/apple-app-site-association - Specify domains for different modes in the entitlements as
<string>applinks:testing.example.com?mode=developer</string> (or ?mode=managed or ?mode=developer+managed ) in an array under the key com.apple.developer.associated-domains
Explore the Action & Vision app
https://developer.apple.com/wwdc20/10099
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Keynote ★
https://developer.apple.com/wwdc20/101/
- App Library
- Automatically created at the end of your app pages on the Home Screen
- Makes it easier than ever to get to your apps
- Widgets on Home Screen
- Richer UI - more possibilities
- Different sizes to choose one that best fits your needs
- Droppable on the home screen
- Widget gallery to explore all widgets
- SmartStack as intelligent assistant which enables you to scroll through your widgets
- Picture in Picture on iPhone
- Swipe to the side, out of the screen, and audio keeps playing
- Video keeps playing when switching apps
- Siri
- Got smarter and has a new interface which doesn't block your UI anymore
- Can now send audio messages using the messages app - completely hands free
- Translate as new app of offline conversation translate
- Conversation mode when switching to landscape mode in the app
- ข้อความ
- Pinning messages to the top of the screen
- Memoji gets hundreds of new options to customize your avatar, including masts, fist-pumps and more
- Group conversations got some ❤️ by adding inline replies and most-active member widget
- แผนที่
- More countries like UK, Ireland and Canada
- It gets easier to find places you love and how you get there in an ecological way
- Maps offers Guides that help you discover great new places
- Brand new cycling option to reduce your carbon footprint
- EV-Routing option to optimize your route for electric cars - eg by selecting routes with charging station on your way
- CarPlay
- New wallpaper option
- New categories for CarPlay apps: Parking, EV-Charging, and Quick-Food ordering
- Car Key API - first supported by BMW - enable open/close/start your car
- App Clips as small, fast parts of an app, designed for speed
- A way to discover what the App Store has to offer
- Launchable from the web, by NFC tags, QR codes or the brand new Apple designed tags
- Needs to be smaller than 10 MB
- Use Sign in With Apple to provide the most seamless app experience
- Use Apply Pay to allow quick payments
- Option to download the full app
- iPadOS
- Photos app gets an all new side bar - new way to navigate and organize your photos
- Incoming calls become unobtrusive using notification style UI (available for all apps: WhatsApp, Skype, ...) • available for iOS too
- New searching experience
- Apple Pencil
- Scribble lets you hand-write in any text field. iOS converts your writing then to text
- Smart Selection lets you select single words / characters you've written using your pencil using iOS text recognition features
- DataDetectors are used to automatically detect eg phone numbers, email addresses
- AirPods
- are now able to automatically switch to new incoming audio sources
- Spatial Audio for AirPods Pro (AirPods Motion API) to emulate movie theatre experience using AirPods gyroscope to sync the sound to your head position/orientation
- watchOS 7
- Configure your own watch faces styled by your current living style
- Watch faces can now be shared on Websites or via the usual sharing features of watchOS
- Workout app adds dance, cooldown, functional training and more workouts plus it is renamed to Fitness
- Sleep Tracking is a new app that helps you to get to bed at time using
Wind Down which dims all distractions (also available in iPhone) - Handwashing detection to make sure you wash as long as you're supposed to (20 seconds shown in demo)
- Privacy Improvements
- Location only share rough location
- กล้อง ...
- Tracking Control require apps to ask before tracking
- App Privacy makes data tracked by developers visible to the users before they download the app
- บ้าน
- Alliance among different manufacturers to make smart home devices even better
- Adaptive lighting to auto-adjust color temperature throughout the day
- Cameras get activity zones, richer notifications
- Face recognition extends to Home Pod
- Camera content can be displayed on TV via your Apple TV
- Apple TV
- Picture in Picture
- Better Airplay in full 4K
- Apple TV+ already on over 1 billion devices
- Foundation as newest production only available on Apple TV+
- macOS Big Sur
- use of a lot of translucency
- Design refresh for all system apps
- New side and compact, space efficient toolbars
- Control center now on the mac
- Notification Center
- Notification grouping
- iOS widgets also available on the mac
- Messages with new search, photo picker, messages effects, pin conversations, inline replies and more
- Maps with indoor-maps, favorites, ETA from friends and all of it implemented using Catalyst
- Safari with 50% faster page loading, Privacy Report via toolbar button, Web Extensions API, built-in translation
- Mac
- Processor-transition to Apple Silicon - Apple's own processor line - bye bye Intel
- Universal 2 is the new universal binary type that contains binaries compiled for both architectures
- Rosetta 2 lets existing app run on new architectures from day one by making them compatible at installation time
- Supports iPhone and iPad apps directly
Meet Watch Face Sharing
https://developer.apple.com/wwdc20/10100
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design great widgets
https://developer.apple.com/wwdc20/10103
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Adopt the new look of macOS
https://developer.apple.com/wwdc20/10104
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build for iPad
https://developer.apple.com/wwdc20/10105
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Meet Scribble for iPad
https://developer.apple.com/wwdc20/10106
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in PencilKit
https://developer.apple.com/wwdc20/10107
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Support hardware keyboards in your app
https://developer.apple.com/wwdc20/10109
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Support local network privacy in your app
https://developer.apple.com/wwdc20/10110
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Boost performance and security with modern networking
https://developer.apple.com/wwdc20/10111
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build local push connectivity for restricted networks
https://developer.apple.com/wwdc20/10113
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
iPad and iPhone apps on Apple Silicon Macs
https://developer.apple.com/wwdc20/10114
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
AutoFill everywhere
https://developer.apple.com/wwdc20/10115
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
VoiceOver efficiency with custom rotors
https://developer.apple.com/wwdc20/10116
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Accessibility design for Mac Catalyst
https://developer.apple.com/wwdc20/10117
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Create app clips for other businesses
https://developer.apple.com/wwdc20/10118
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Introduction to SwiftUI
https://developer.apple.com/wwdc20/10119
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Streamline your app clip
https://developer.apple.com/wwdc20/10120
Presenters: Yongjun Zhang, Luming Yin
- Best practices
- Focus on essential tasks
- Limit the features. Reserve complex features for your app
- Require all assets for initial experience
- Do not include splash screens
- Avoid requiring people to sign up before finishing their task
- Only ask for location and notification permissions if needed (more on this below)
- Make sure your App Clip has the same name and icon as your app
- Put shared assets in a shared asset catalog
- การรับรองความถูกต้อง
- Support Sign in with Apple
- Use
ASWebAuthenticationSession for other federated login - Offer username and password login for existing users
- Offer "Sign In With Apple" upgrade in the app
- For privacy reasons, and because App Clips are ephemeral, some contents are not available to App Clips, such as HealthKit info
- App Clips can request permission to use Bluetooth, the camera, and microphone
- Streamlining Transactions
- 2 new types of ephemeral permissions: Location and Notification
- Allows App Clips to check if the user is within a region, without prompting for location permission
- Add
NSAppClipRequestLocationConfirmation with value true in your Info.plist to enable this - Supports checking a region with a radius of up to 500 meters
- Allows App Clips to send notifications for up to 8 hours after each launch, without prompting for notification permission .
- Add
NSAppClipRequestEphemeralUserNotification with value true in your Info.plist to enable this - Check the authorization status in the
NotificationSettings , under the new .ephemeral status
- Users can explicitly disable these permissions via App Clip settings panel
- App Clips can prompt the user for full Location and Notifications access, although discouraged
- Strongly suggest using ApplePay
- Strongly suggest using "Sign In With Apple"
- Use
AuthenticationServices API to sign your users in without showing a login screen (assuming they have already previously signed up in your website for instance)
- Transition users to your app
- iOS suggests downloading your app from App Clip experiences, banners and App Clip settings
- You can embed
StoreKit SKOverlay in a view- Suggestion: display this overlay only after the user finishes their task, eg after payment
- Transfer data on device with a secure App Group
- Only accessible between your App Clip and your app
- Once user downloads the app, the App Group will be transferred to the app after the App Clip is deleted
- Migrate your "Sign In With Apple" session from your App Clip by persisting the user ID in the secure App Group. Use
ASAuthorizationAppleIDProvider to verify the user's session without prompting UI
Discover AppleSeed for IT and Managed Software Updates
https://developer.apple.com/wwdc20/10138
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Leverage enterprise identity and authentication
https://developer.apple.com/wwdc20/10139
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build location-aware enterprise apps
https://developer.apple.com/wwdc20/10140
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build scalable enterprise app suites
https://developer.apple.com/wwdc20/10142
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Mac Catalyst
https://developer.apple.com/wwdc20/10143
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for Game Center
https://developer.apple.com/wwdc20/10145
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Configure and link your app clips
https://developer.apple.com/wwdc20/10146/
Presenters: Ada Chan, Luming Yin
- อินโทร
- App Clips provide entry points to your users to experience your app with minimal friction.
- Use deep-linked navigation to present the App Clip
- User Quest
- User is in a smoothie shop. They see an NFC tag and tap it using the phone.
- An app clip shows up on the phone's lockscreen with summarized detail about that smoothie.
- User taps "open" and a single screen of your app shows up.
- User can then proceed to the payment via Apple Pay.
- Activation
- Tapping NFC tags or scanning QR codes - they're just deep links after all (a URL)
- Maps and Siri Nearby Suggestions (for registered businesses)
- Smart app banner in your website (shown in Safari and Messages)
- Apple App Clip codes will be introduced later this year (it's a prettified QR code)
- If the user already has the your app installed, following an App Clip link will open the full app instead.
- Setup
- Configure web server and App Clip for link handling
- Web Server: Update the apple-app-site-association file
- App Clip: Add associated domains entitlement and handle NSUserActivity
- Configure App Clip default and advanced experiences on App Store Connect
- Layout requirements:
- Title: 18 chars limit
- Subtitle: 43 chars limit
- ภาพ:
- Size: 3000 x 2000px
- Aspect Ratio: 3:2
- Format: png/jpg
- Transparency: No
- แนวทางปฏิบัติที่ดีที่สุด
- URL mapping is based on most specific prefix match against registered App Clip experience URLs
- Your App Clip must be able to launch using an exact registered URL. ตัวอย่างเช่น:
- App registers https://bikesrental.com/rent instead of https://website.com/rent?bikeID=2
- When receiving https://website.com/rent?bikeID=2, it should be able to deliver the https://website.com/rent App Clip
- App is responsible for parsing the remaining arguments and presenting the specific bike with ID 2
- You can also register a more specific URL if you want to provide a different and more specific App Clip experience for it
- Configure the Smart App Banner to open App Clip (add this if the content of your web page can be delivered as a better and more streamlined app experience)
- Add/update your website's HTML to add the Smart App Banner meta tag
- ทดสอบ
- Specify an App Clip URL under the
_XCAppClipURL environment variable to launch App Clip from Xcode - TestFlight - new App Clips section in App Store Connect
Distribute binary frameworks as Swift packages
https://developer.apple.com/wwdc20/10147
Presenters: Boris Buegling
- Xcode 11
- Introduction of Swift Packages to distribute libraries as source code
- Introduction of XCFrameworks to distribute closed-source binary frameworks and libraries
- Xcode 12 adds support for binary dependencies
- Binary Dependencies (XCFrameworks)
- Used to distribute closed-source frameworks, static and dynamic libraries
- Contain a single module
- Easily addable via the
Xcode > File > Swift Packages > Add Package Dependency - Has sub directories corresponding to platform and target environment, each containing a framework
- Declare dependency in your Package.swift using
.package(url: "https://github.com/owner/package", from: "1.0.0")
- Distribute Binary Frameworks as a Swift Package
- New target type
.binaryTarget(name: "Emoji", url: https://example.com/Emoji/Emoji-1.0.0.xcframework.zip, checksum: "6d98....") - Binary targets can be offered to clients just like regular targets
- Binary Targets
- Use XCFrameworks
- Only supported on Apple platforms
- HTTPS or path based - paths can point to files inside your package
- Name corresponds to the module name
- Use semantic versioning
- Create your own Binary Dependency
- Create
File > New Swift Package - Replace template-added targets and add a binary target
- Compute the checksum using
swift package compute-checksum Emoji-1.0.0.xcframework.zip - Set
Build Libraries for Distribution build setting - Archive each variant
-
xcodebuild -create-xcframework - See 2019 session "Binary frameworks in Swift" or read the session notes which is way quicker
- Tradeoffs of Binary Dependencies
- Harder to debug since source code is missing
- You won't be able to compile for your specific platform if not included by the author
Inspect, modify, and construct PencilKit drawings
https://developer.apple.com/wwdc20/10148
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Structure your app for SwiftUI previews
https://developer.apple.com/wwdc20/10149
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in CareKit
https://developer.apple.com/wwdc20/10151
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Use model deployment and security with Core ML
https://developer.apple.com/wwdc20/10152
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Get models on device using Core ML Converters
https://developer.apple.com/wwdc20/10153
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Control training in Create ML with Swift
https://developer.apple.com/wwdc20/10156
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Deliver a better HLS audio experience
https://developer.apple.com/wwdc20/10158
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build an Endpoint Security app
https://developer.apple.com/wwdc20/10159
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Formatters: Make data human-friendly
https://developer.apple.com/wwdc20/10160
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for location privacy
https://developer.apple.com/wwdc20/10162
Presenter: Rachel Needle
- Today people share precise location data
- In iOS 14, Core Location allowing users to control and share their approximate location
- All kinds of apps will be impacted by this change (even Apple's apps)
- How to adapt the app to work without precise location?
- Prioritize user control
- Give everyone control over their location data they share and respect their preferences
- Don't require precise location
- Replace precise data with approximate where possible
- Identify where else you use precise location and remove non-essential uses of precise location
- Build trust through transparency
- Communicate with people about what data your app uses and how that data is used
- Make status easy to access
- Allow users to change their decision
- Offer proportional value
- Only ask for precise location when you really need it
- Request precise location in response to user action
- Position the request close to the value it provides
- Consider checking out these two sessions to get detailed information
- Build trust through better privacy
- What's new in location
Advancements in the Objective-C runtime
https://developer.apple.com/wwdc20/10163
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
XCTSkip your tests
https://developer.apple.com/wwdc20/10164
Presenters: Wil Addario-Turner
- Tests can pass or fail, or with
XCTSkip , be marked with an explicit "skip" result. - In Xcode 11.4,
XCTSkip , XCTSkipIf and XCTSkipUnless were introduced to allow skipping tests at runtime. - Call
throw XCTSkip("message") and the test will be skipped. -
XCTSkipIf skips when the expression is true. XCTSkipUnless skips when the expression is false. - Check the results from the test navigator and the test report with the line where the skip occurred, along with a reason explaining why.
Embrace Swift type inference
https://developer.apple.com/wwdc20/10165
Presenter: Holly Borla
- Leveraging type inference
- A type can be inferred by the compiler given the context surrounding a variable or function
- SwiftUI code relies on type inference for reusable views
- A demo is presented showing a SwiftUI component being built using generics
- How type inference works in compiler
- Think of type inference as a puzzle
- It resolves the puzzle by filling in the missing pieces using clues from the source code
- Solving one puzzle can give the compiler more clues on how to solve other puzzles
- Type inference errors
- If a puzzle can't be solved, there's an error in the source code
- During type inference, the compiler will record information about errors in source code
- Compiler uses heuristics to attempt to fix errors in order to continue type inference
- Once type inference is done, the compiler will provide actionable error messages based on collected information (some errors might have auto-fixes)
- Swift 5.3 and Xcode 12 improved error handling a lot, showing more meaningful and reliable error messages
- Using Swift and Xcode to fix compile errors
- The compiler will leave breadcrumbs about what the compiler was doing when it found an error
- This can help you connect the dots between the error you're seeing on the editor and other files in your project
- Hold ⌥ + ⇧ on an error breadcrumb and drag it to the right of the source editor, to open the source editor and the breadcrumbs details side by side
Safely manage pointers in Swift
https://developer.apple.com/wwdc20/10167
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore logging in Swift
https://developer.apple.com/wwdc20/10168
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Swift packages: Resources and localization
https://developer.apple.com/wwdc20/10169
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Swift
https://developer.apple.com/wwdc20/10170
Presenters: Ted Kremenek, Kyle Macomber
- Swift Releases
- Xcode 11.4 - Swift 5.2
- Xcode 12 (beta) - Swift 5.3
- Runtime Performance
- Code Size
- Code size is the part of the app that represents the machine code representation of the app's logic
- Swift 5.3 is below 1.5 times the code size of Objective-C version (based on app that ships with iOS)
- Size difference is inevitable because of Swift safety features
- SwiftUI app binary code size can be reduced by 40% (based on MoviesSwiftUI app)
- Memory Layout
- Comparing models with three properties in Obj-C (
NSUUID , NSString and float ) and Swift ( UUID , String , Float ) - In Obj-C, object variables are just pointers which then hold a pointer to their properties
- Swift's use of value types avoid the need to access values via pointers (UUID and Strings)
- Significant memory benefit because it is allocated directly within array storage (contiguous block of memory)
- Heap memory use comparison: 20kB in Swift 5.1 vs 35kB in Obj-C (400 models in array)
- Swift's Standard Library now is below Foundation in the stack which means it can be used to develop low-level frameworks for Objective-C frameworks where previously C has to be used!
- Diagnostics
- New diagnostics in the Swift compiler result in more precise and actionable errors
- Additional notes in error messages (SwiftUI as an example)
- More info on swift.org
- Code completion
- Much better code completion thanks to improvements in SourceKit
- Code completion for dictionary literals, ternary expressions and more dynamic features like key paths
- Code completion in Xcode 12.0 is 15x faster compared to Xcode 11.5
- Code Indentation
- Improved indentation formatting in chained methods calls, tuples, multiline
if and guards - Improved indentation in SwiftUI as well
- การดีบัก
- Debugger now displays the reason for Swift runtime failure traps
- Cross-Platform Support
- Multiple platform support
- Apple Platforms
- Ubuntu 16.04, 18.04, 20.04
- CentOS 8
- Amazon Linux 2
- Windows (coming soon)
- Swift on AWS Lambda
- Runtime is open-source and is available on GitHub
- ภาษา
- Swift Evolution website
- Multiple trailing closure syntax SE-0279
- It's important to set the correct base name of the method that will indicate the first trailing closure that its label will be dropped
- Key Path Expressions as Functions SE-0249
-
@main : Type-Based Program Entry Points SE-0281- The standardized way to delegate a program's entry point
- Increased availability of implicit self in @escaping closures when reference cycles are unlikely to occur SE-0269
- Now it's possible to add
self to the capture list - In Swift 5.3, if self is a structure it can be omitted entirely from the closure
- Multi-Pattern Catch Clauses SE-0276
- Enum Enhancements
-
Comparable conformance is now synthesized automatically SE-0266 - Enum cases as protocol witnesses SE-0280
- Embedded DSL Enhancements
- Builder closures
- Swift 5.3 introduces pattern matching statements like
if let and switch - Builder inference (
@SceneBuilder is not longer needed)
- ห้องสมุด
-
Float16 SE-0277- Half-width floating point type
- Performance gains but low precision and small range
- Apple Archive
- Modular archive format
- Fast compression
- Idiomatic Swift API
- Swift System
- Idiomatic Swift interface to system calls
- Low-level currency types
- Wraps Darwin APIs
- OSLog
- Unified logging API
- Faster and more expressive (formatting options)
- แพ็คเกจ
- Swift Numerics
- Support for complex numbers and basic math functions
- Swift ArgumentParser
- Swift Standard Library Preview
- Includes features that have not been included in the release yet
What's new in watchOS design
https://developer.apple.com/wwdc20/10171
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design great app clips
https://developer.apple.com/wwdc20/10172
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Get the most out of Sign in with Apple
https://developer.apple.com/wwdc20/10173
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore app clips
https://developer.apple.com/wwdc20/10174
Presenters: James Savage, Luming Yin
- What is an App Clip?
- App Clip Experience URL is required to run App Clips which are parts of your app
- On-demand app experiences
- App Clip Experiences
- App Clip URLs are similar to Universal Links
- Registered using App Store Connect
- Surfaced through user actions via NFC / QR codes / links in Safari or other apps / Apple App Clip codes combine the ease of NFC and visual codes so they can be tapped or scanned
- New App Clip Target in Xcode
- Contains all assets
- Needs to be submitted along with the app for review
- It gets downloaded separately if the app is not installed on user's device
- Should be as small as possible for quick downloads (less than 10MB but with enough assets to load UI quickly)
- Focused user flows - one at a time
- การสาธิต
- Ordering smoothies
- New App Clip target embedded in the application
- Name and bundle ID for App Clip added
- It can build and run with boilerplate code right away
- Add code and resources
-
NutritionFacts dependency added - Create new Assets Catalog as shared assets
- Drag App Icon, Colors and other image assets required for app clip into the shared assets catalog
- Add the required model and view files to App Clip target
- Let go of unwanted Swift files like navigation
- Conditionally compile out the references to files not added to App Clip
- Build Settings > Swift Compiler custom flags > Active Compilation Conditions > Add APPCLIP condition for required schemes.
- Use #if !APPCLIP to compile out unwanted references in Swift code
- Write code for App Clip
- Add required models and views to the new AppClip
- Include existing views in the App Clip's content view
- Technology Overview
- App Clips are built using same UI components as an app
- When launched, it receives
NSUserActivity- Use the URL to identify the type of experience to be handled
- Unlike extensions, App Clip can make use of all iOS SDK APIs
- Note: Access to sensitive data is limited
- Always check if data is available
- New location confirmation API helps get the location quickly without requesting full access
- New API for migrating data from App Clip to main app using shared data container once installed
- App Clip and its local storage will be deleted after period of inactivity
- Can not be launched via Universal Links or custom URL schemes
- Can not include bundle extensions like content blockers
- Device states and transitions
- User scans QR code
- iOS locates, downloads and runs the App Clip
- If the App Clip is not revisited for a while, the App Clip and its data gets deleted
- Treat App Clip data as cache; which can be deleted
- If the App Clip is visited frequently, its lifespan will be extended and data may never be cleared
- When user downloads your app, iOS will automatically migrate the data container and the permissions that were already granted by the user
- iOS still deletes the App Clip and its container after copying the data container to the app
- Other technologies
- Apple Pay
- การแจ้งเตือน
- SwiftUI
-
SKOverlay / AppStoreOverlayModifier (refer to What's new with in-app purchase session) -
ASAuthorizationController for sign in or sign up
The details of UI typography
https://developer.apple.com/wwdc20/10175
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Master Picture in Picture on tvOS
https://developer.apple.com/wwdc20/10176
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in HealthKit
https://developer.apple.com/wwdc20/10182
Presenter: Netra Kenkarey
- อาการ
- Developers can now track symptoms in HealthKit, read and write symptom samples
- HealthKit attempted to cover and track a wide range of symptoms (shortness of breath, sleep changes, appetite changes, fever, headache, etc.)
- There are 13 symptom data types in HealthKit
- Electrocardiogram (ECG)
- ECG samples will be available for reading in the latest version of iOS and watchOS
- An ECG sample can be read as an
HKElectrocardiogram (it represents a waveform as a series of voltage values) - ECG sample has important properties that describe the measurements
- classification (
HKElectrocardiogram.Classification )- Apple Watch will give the result of the recording in the form of a classification
- The classification is divided into 2 types
- Sinus Rhythm (heart is beating in a uniform pattern)
- Atrial fibrillation (form of irregular rhythm, user should probably go see their doctor)
- If Apple Watch is unable to determine the ECG result, either due to a low or a high heart rate or due to any other reason, the result is considered inconclusive
- symptomStatus (
HKElectrocardiogram.SymptomsStatus )- It tells if the user associated a symptom with this ECG (eg heartburn, tightness in the chest)
- The symptom experienced can be recorded along with the ECG
- averageHeartRage (
HKQuantity? ) - samplingFrequence (
HKQuantity? ) - numberOfVoltageMeasurements (
Int )- It refers to the individual voltage measurements that make up an ECG sample
-
HKElectrocardiogramQuery- To retrieve the individual measurements run the
HKElectrocardiogramQuery - Fetch the ECG samples with any of the HealthKit queries and then initialize the
HKElectrocardiogramQuery with the fetched sample - When this query is executed on the HealthStore, you get the individual voltage measurements back in the ECG and the data handler
- Mobility
- New set of mobility types (available for reading and writing on the latest iOS and watchOS)
- Walking speed and step length
- Walking assymetry and double support percentage
- Stair ascent and descent speed
- Six-minute walk test distance
Synchronize health data with HealthKit
https://developer.apple.com/wwdc20/10184
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Visually edit SwiftUI views
https://developer.apple.com/wwdc20/10185
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Discover WKWebView enhancements
https://developer.apple.com/wwdc20/10188
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Secure your app: threat modeling and anti-patterns
https://developer.apple.com/wwdc20/10189
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Create quick interactions with Shortcuts on watchOS
https://developer.apple.com/wwdc20/10190
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Add configuration and intelligence to your widgets
https://developer.apple.com/wwdc20/10194
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Broaden your reach with Siri Event Suggestions
https://developer.apple.com/wwdc20/10197
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Platform State of the Union ★
https://developer.apple.com/wwdc20/102/
- Some new features: AirPods Motion API , SwiftPM resources , New Catalyst Controls , ARKit 4 , Widgets in SwiftUI , Depth API , TestFlight 100 Testers , SwiftUI Lifecycle , Catalyst Native Screen Resolution , Complications in SwiftUI , Xcode StoreKit Testing , HomePod Music Services , App Clips , New SwiftUI Controls , Xcode Tabs , ...
- Users can make your app the default app used for email and set a default web browser
- Developers can bring existing web-browser extensions to Safari using a new command line tool
- FindMy can now leverage all iPhones out there to locate your devices, even if they are not connected to the internet (applicable to all kinds of objects)
- Mac transition to Apple Silicon - Apple's own processor line - brings more security, better performance, longer battery life and amazing graphics
- ข้อดี
- Cached cloud content can be kept up to date for days, even if your mac goes to sleep
- Higher quality, hardware-supported 4:4:4 encoder for eg better image quality when connecting your Mac via SideCar
- Best-In-Class platform security
- Apple provides a Developer Transition Kit
- Mac mini enclosure + A12Z SoC
- 16GB memory, 512GB SSD
- macOS Big Sur Developer Beta + Xcode
- First Macs will appear by end of the year
- Universal 2 create universal apps that run on both Apple Silicon and older architectures
- Porting to Apple Silicon takes only a few days, even for grown projects. As a result, all Apple system apps are already converted in macOS Big Sur
- Rosetta 2 lets existing app run on new architectures from day one by making them compatible at installation time
- Supports iPhone and iPad apps directly
- iOS/iPad Apps natively on Mac
- Apps will run natively on the Mac
- Apps will automatically support features like resizing, Dark Mode, scrolling, multi-window, native share sheets, ...
- Apple plans to make iOS/iPadOS apps available on the App Store for macs running with Apple Silicon
- macOS Big Sur - macOS 11
- Rounded dock ?
- Control Center for mac
- New translucent look for notification center
- Refined layout for menus of the menu bar
- New sheet presentation - parent window is dimmed
- Completely re-designed toolbars with extending search fields and images provided by SF-Symbols
- App-specific accent color
- macOS Catalyst
- macOS-specific implementation of iOS API's
- Native resolution support
- Messages re-written in Catalyst
- SwiftPlaygrounds will support multiple windows
- iPadOS
- New sidebars can now expand from two-column layout to three-column layout - even available in portrait mode
- Recommended to use side bars instead of tab bars
- New inline emoji picker - also for custom apps
- New color picker UI - easy to adopt
- New Depth APIs give you access to precise distance info captured by the LiDAR scanner on iPad
- Dramatic improvement of people inclusion and motion detection - objects can be placed in front or behind real objects in the world
- Apple Pencil
- New handwriting improvements will work in your apps without any additional work
- Hand-writing for any UITextField
- Automatic support for Scribble which converts any hand-written text to typed text
- Stroke API gives access to the strokes as the user draws
- Smart Selection lets you select single words / characters you've written using your pencil and iOS text recognition features
- iOS 14
- Widgets
- New widgets take UX to a whole new level
- Users can move them to the home screen
- Widgets are packed as SwiftUI archives which are optimized for performance
- Are rendered by the system at the right time, when the user needs them
- Can be smartly stacked to consume less space and let the user flip through them
- Stack automatically moves the right widget to the top at just the right time
- Configurable in the Widget Gallery
- App Clips
- Small part of the app which is light/fast and easy to discover
- Can use Apple Pay and Sign in With Apple to provide a seamless UX
- Easily discoverable in a variety of ways, like other apps or places in the real world via new Apple-designed (QR-like) codes which are basically NFC tags
- Introduce users to what your app offers
- อื่น ๆ New Features
- Cycling directions, Guides and EV routing in Maps
- Translate app
- Messages inline replies
- Car keys
- App Library
- On device dictation
- watchOS 7
- Xcode is now able to preview watchOS complications
- SwiftUI complications
- Watch-face sharing via any sharing capabilities, eg Messages, social media, etc
- Xcode 12
- Cleaner, more expressive UI
- Navigators realized using the new Side Bar
- Any kind of content is now openable in document tab
- Navigate through nested calls in compiler failure messages
- StoreKit test environment lets you unit test In-App Purchase and Subscriptions
- New StoreKit transaction manager shows details during debugging
- Faster code completion with simplified presentation
- SwiftUI
- All SwiftUI apps will continue to compile without additional changes (Apple added no breaking changes - just extensions)
- Lazy statement makes large collections of views way less memory hungry and makes scrolling snappy again
- Now contains app-structure APIs for all Apple platforms, eg
@main , @SceneBuilder , Settings , ...
Design for intelligence: Meet people where they are
https://developer.apple.com/wwdc20/10200
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Create great enterprise apps: A chat with Box's Aaron Levie
https://developer.apple.com/wwdc20/10204
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design with iOS pickers, menus and actions
https://developer.apple.com/wwdc20/10205
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for iPad
https://developer.apple.com/wwdc20/10206
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
SF Symbols 2
https://developer.apple.com/wwdc20/10207
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Core NFC
https://developer.apple.com/wwdc20/10209
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Modernize PCI and SCSI drivers with DriverKit
https://developer.apple.com/wwdc20/10210
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Port your Mac app to Apple Silicon
https://developer.apple.com/wwdc20/10214
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in ResearchKit
https://developer.apple.com/wwdc20/10216
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore numerical computing in Swift
https://developer.apple.com/wwdc20/10217
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build localization-friendly layouts using Xcode
https://developer.apple.com/wwdc20/10219
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Handle interruptions and alerts in UI tests
https://developer.apple.com/wwdc20/10220
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Get your test results faster
https://developer.apple.com/wwdc20/10221
Presenters: Sean Olszewski
- The Testing Feedback Loop
- Write tests > run tests > Interpret result >if sufficient confidence [ > Next task] else go back to write tests
- Short feedback loops is important because that means you get results from your tests faster, you can ship features to your users faster.
- Real world example: Result bundle from that CI job, which never finished. Due to dead lock, poorly chosen timeout.
- Execution Time Allowance [NEW in XCode 12]
- When enabled, Xcode enforces a limit on the amount of time each individual test can take. When a test exceeds this limit, Xcode will first capture spin dump, then kill the test that hung, restart the test runner, so that the rest of the suite can execute.
- A spin dump shows you which functions each thread is spending the most time in. It's also possible to manually capture spin dump from Terminal using the spin dump command or from within Activity Monitor.
- By default, each test gets 10 minutes. If you need to a specific test or test class, you can use the
executionTimeAllowance API to special case a particular test or subclass. For values under 60 seconds, they'll be rounded up to 60 seconds, the nearest whole minute. - Prevent a test requests unlimited time by enforcing a maximum allowance.
- You can customize the default time allowance and a maximum allowance either via a setting in the Test Plan or through an Xcodebuild option.
- Use
XCTest 's performance APIs to automate testing for regressions in the performance. Use Instruments to identify what parts of your code are slow,
- Parallel Distributed Testing
- Xcode build will distribute tests to each run destination by class. Each device runs a single test class at a time.
- If you're testing logic that is device or OS specific, this can lead to unexpected failures or skipped tests.
Create custom apps for employees
https://developer.apple.com/wwdc20/10222
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Deploy Apple devices using zero-touch
https://developer.apple.com/wwdc20/10223
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Meet Audio Workgroups
https://developer.apple.com/wwdc20/10224
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Improve stream authoring with HLS Tools
https://developer.apple.com/wwdc20/10225
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Record stereo audio with AVAudioSession
https://developer.apple.com/wwdc20/10226
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Low-Latency HLS
https://developer.apple.com/wwdc20/10228
Presenter: Roger Pantos
- Comes out of beta this year
- Available in iOS 14, tvOS 14, watchOS 7 and this year's macOS
- Includes support for bit-rate switching, FairPlay Streaming, fMP4 CMAF, ad insertion, captioning
- Native app support, no entitlement necessary
- draft-pantos-hls-rfc8216bis07 and later now includes LL-HLS
- Includes Low-Latency Server Configuration Profile
- Includes CDN tune-in algorithm
- Updated informative articles on developer.apple.com
- Protocol Extension for Low-Latency HLS
- HLS Authoring Specification for Apple Devices
- Significant changes and improvements to the protocol
- Reducing segment delay
- Approach described last year using HTTP/2 Push to send segment with Playlist is not compatible with some delivery models
- Replaced Push with Blocking Preload Hints
- Client requests next part in advance
- Server will hold on to the request until it can send it
- Also triggers global CDN cache fill
- Discover HLS Blocking Preload Hints session for more information
- Other improvements
- Eliminated HLS report
- All Rendition Reports are provided unconditionally
- Defined EXT-X-DATERANGE handling for Playlist Delta Updates
- Optimize Live Streams with HLS Playlist Delta Updates session for more detailed information
- Added signaling of gaps in Parts and Rendition Reports
- New attributes: GAP=YES in EXT-X-PART and EXTT-X-RENDITION-REPORT
- This allowing clients to deal better with encoded outages in Low-Latency streams
- Low-Latency HLS Tools changes
- Reference implementation now produces fMP4/CMAF
- Added self-contained LL-HLS origin written in Go
- Incorporated Low-Latency HLS tools into the regular HLS tools package
- Find out more in Improve Stream Authoring with HLS Tools session
- Summary of important changes
- Replaced HTTP/2 Push with Preloading Hinting
- Simplified Delivery Directives
- Generate CMAF in reference tools
- Everything is included in the current HLS spec
Discover HLS Blocking Preload Hints
https://developer.apple.com/wwdc20/10229
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Optimize live streams with HLS Playlist Delta Updates
https://developer.apple.com/wwdc20/10230
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Reduce latency with HLS Blocking Playlist Reload
https://developer.apple.com/wwdc20/10231
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Adapt ad insertion to Low-Latency HLS
https://developer.apple.com/wwdc20/10232
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
The artist's AR toolkit
https://developer.apple.com/wwdc20/10601
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Harness Apple GPUs with Metal
https://developer.apple.com/wwdc20/10602
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Optimize Metal apps and games with GPU counters
https://developer.apple.com/wwdc20/10603
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Shop online with AR Quick Look
https://developer.apple.com/wwdc20/10604
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Gain insights into your Metal app with Xcode 12
https://developer.apple.com/wwdc20/10605
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore ARKit 4
https://developer.apple.com/wwdc20/10611
Presenters: Quinton Petty, Praveen Gowda
- Location Anchors
- Geo-referenced AR Content
- Uses "visual localization" from Maps
- No processing in the cloud
- No images sent back to Apple
- Pinned to a geo-location
- 3 main parts
-
ARGeoTrackingConfiguration -
ARGeoAnchor -
ARGeotrackingStatus
- Device support A12 Bionic or later + GPS support
- Requires availability checks for both device and location
-
ARGeotrackingStatus-
State -
StateReason -
accuracy : low, medium, high
- Methods for converting between local and latitude / longitude positions via
getGeoLocation(forPoint:) - Recommended to point towards buildings / static objects
- May struggle in wide open spaces (eg a field)
- Locations currently available: San Francisco Bay Area, Los Angeles, New York, Chicago and Miami
- Sample: Tracking Geographic Locations in AR
- Scene Geometry
- Topological map of environment
- Semantic classification
- Allowing for:
- การบดเคี้ยว
- ฟิสิกส์
- Virtual lighting
- Based upon the Depth API
- Depth API
- Provides a dense depth image
- Use
sceneDepth under frame semantics - Runs at 60Hz, on every ARFrame
-
depthMap and confidenceMap provided - Depth map provided as
CVPixelBuffer -
ARConfidenceLevel : high, medium or low - Available on LiDAR devices
- Object Placement
- Improvements in Raycasting
- Quicker placement with LiDAR sensor
- Allows for placing on a white wall
- Raycasting is recommend over hit-testing
- 2 types of query:
- Face Tracking
- Support added for non-TrueDepth iPhones
- Requires A12 processor or later
- iPhone SE (2020)
What's new in RealityKit
https://developer.apple.com/wwdc20/10612
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in USD
https://developer.apple.com/wwdc20/10613
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Advancements in Game Controllers
https://developer.apple.com/wwdc20/10614
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build GPU binaries with Metal
https://developer.apple.com/wwdc20/10615
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Debug GPU-side errors in Metal
https://developer.apple.com/wwdc20/10616
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Bring keyboard and mouse gaming to iPad
https://developer.apple.com/wwdc20/10617
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Tap into Game Center: Dashboard, Access Point, and Profile
https://developer.apple.com/wwdc20/10618
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Tap into Game Center: Leaderboards, Achievements, and Multiplayer
https://developer.apple.com/wwdc20/10619
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Support performance-intensive apps and games
https://developer.apple.com/wwdc20/10621
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Bring your Metal app to Apple Silicon Macs
https://developer.apple.com/wwdc20/10631
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Optimize Metal Performance for Apple Silicon Macs
https://developer.apple.com/wwdc20/10632
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Capture and stream apps on the Mac with ReplayKit
https://developer.apple.com/wwdc20/10633
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Discover search suggestions for Apple TV
https://developer.apple.com/wwdc20/10634
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Accelerate your app with CarPlay
https://developer.apple.com/wwdc20/10635
Presenters: Jonathan Hersh, Allen Langmaier
- New CarPlay App Possibilites
- EV charging
- Parking
- Quick food ordering
- Audio Apps
- Playable content template will be deprecated
- New audio template
- New Templates
- Communication Apps
-
CPMessageListItem - Contact template
- List template
- Tab bar template
- Now playing template
- Point of interest template
- Information template
- CarPlay Design Principles
- Design for the driver
- Streamline interactions
- Reuse app configuration
- Launch first in CarPlay
- CarPlay apps must adapt
UIScene
- Updates to development
- Dynamic updates to list elements
-
CPListItem -
CPListImageRowItem
What's new in streaming audio for Apple Watch
https://developer.apple.com/wwdc20/10636
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in managing Apple devices
https://developer.apple.com/wwdc20/10639
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Design for the iPadOS pointer
https://developer.apple.com/wwdc20/10640
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Handle the Limited Photos Library in your app
https://developer.apple.com/wwdc20/10641
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build Image and Video Style Transfer models in Create ML
https://developer.apple.com/wwdc20/10642
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build a SwiftUI view in Swift Playgrounds
https://developer.apple.com/wwdc20/10643
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Use Swift on AWS Lambda with Xcode
https://developer.apple.com/wwdc20/10644
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Support multiple users in your tvOS app
https://developer.apple.com/wwdc20/10645
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Web Inspector
https://developer.apple.com/wwdc20/10646
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Become a Simulator expert
https://developer.apple.com/wwdc20/10647
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Unsafe Swift
https://developer.apple.com/wwdc20/10648
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Add custom views and modifiers to the Xcode Library
https://developer.apple.com/wwdc20/10649
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Sync a Core Data store with the CloudKit public database
https://developer.apple.com/wwdc20/10650
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in App Store Connect
https://developer.apple.com/wwdc20/10651
Presenter: Daniel Miao
- App Clips
- การทดสอบเบต้า
- Safari App Clip banner appears when a website is associated with an App Clip. Tapping brings up the
App Clip Card . Tapping the card opens the app itself. - App Clips can be invoked from Safari, Messages, Maps, NFC Tags, QR Code or Location
- Invocation URL from the website is used what to show on the App Clip Card and is passed to it upon tap of the banner
- App Clip is packaged with the app and delivered to ASC
- In the new
App Clip Invocation Section on ASC you can provide titles and along with invocation URLs used in the App Clip - Title-URL combinations are selectable in TestFlight and take you directly to the App Clip by passing the invocation URL (without showing the App Clip Card)
- App Clip Card Meta Data
- Header image, App Clip title, App Clip subtitle, call to action button
- Enter the default meta data on the apps version page on ASC
- Associate your website with the App Clip by including the meta-data tag
<meta name="apple-itunes-app", content:"app-id=123456", app-clip-bundle-id:=org.appname.clip> - Use Advanced App Clip Experiences to get customized meta data and association with eg location in Maps
- Advanced assistant on your app's version page on ASC to setup advanced experience
- You can select to promote
Your own business or Other Businesses (eg Yelp)
- You have to specify an Apple App Site Association file (like with universal links) that has to match the Associated Domains Entitlement in your app
- Manage / Debug your website association on ASC
- Game Center
- Challenges other players to get achievement
- Recurring Leaderboards to collect scores for a certain period of time
- Reset after that time
- Configurable on ASC
- Family Sharing for Subscriptions
- Subscriptions can be shared among the family form fall 2020
- Auto-renewable subscriptions
- Non-consumables
- Automatic sharing for new customers
- Existing subscribers can opt-in
- Family-shared in-app purchase can be enabled on the ASC-In-App-Purchase section of your app
- Once turned on it cannot be tuned off again
- App Store Connect API
- Over 200 new endpoints will be added
- Add
App Meta Data API- Create new version
- Set app pricing
- Edit app and version metadata
- Associate build with version
- Submit app for review
- Add
Power and Performance Metrics and Diagnostics API
Meet the new Photos picker
https://developer.apple.com/wwdc20/10652
Presenters: Tobias Conradi, Justin Jia
- PHPicker
- Direct access to user's photo gallery
- Supports zoom in, multi-select, review
- Types are filterable
- Privacy built in by default
- It won't prompt the user for access
- It runs out of the app's process
- Separate process rendered on top of the app
- Only what user selects is passed back to the app
- Implementation
-
PHPickerConfiguration (which can include type filters) is passed to PHPickerViewController , which has delegates to handle responses -
PHPickerConfiguration- Selection limit
- Image / Video type
- Initialize
PHPickerViewController by using the configuration - Set delegate and implement protocol functions
-
didFinishPicking -
NSItemProvider - representation of the item, async, requires error handling
- การสาธิต
- Photo preview app
-
UIImageView with placeholder image - Plus button for image selection
- Present the new picker
- Create
PHPickerConfiguration with images filter and selection limit (set to zero for unlimited selection) - Initialize the
PHPickerViewController with this configuration - Present the new controller after setting delegate and following the protocol
- Implement
didFinishPicking- Dismiss the picker first
- Retrieve the image via item provider and use main queue to update your UI
- Use
IndexingIterator<[NSItemProvider]> to save array of item providers - Add touch event to iterate through the array of picked images
- บันทึก
-
AssetsLibrary will go away; switch to PhotoKit -
UIImagePickerController is to be deprecated and replaced with PHPickerViewController
Detect Body and Hand Pose with Vision
https://developer.apple.com/wwdc20/10653
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Create Swift Playgrounds content for iPad and Mac
https://developer.apple.com/wwdc20/10654
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Discover how to download and play HLS offline
https://developer.apple.com/wwdc20/10655
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Beyond counting steps
https://developer.apple.com/wwdc20/10656
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Make apps smarter with Natural Language
https://developer.apple.com/wwdc20/10657
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in education
https://developer.apple.com/wwdc20/10658
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Introducing StoreKit Testing in Xcode
https://developer.apple.com/wwdc20/10659
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in location
https://developer.apple.com/wwdc20/10660
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new with in-app purchase
https://developer.apple.com/wwdc20/10661
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in Wallet and Apple Pay
https://developer.apple.com/wwdc20/10662
Presenter: Stacey Abrams
- Use Apple Pay to get into public transit and acadamic buildings
- API Enhancements
- PKSecureElementPass replaces PKPaymentPass fom now
- New Apple Pay Button types:
.reload , .addMoney , .topUp , .order , .rent , .support , .contribute , .tip - See how to declare a Apple Pay Button on a website at 2:16
- PKPaymentButton style
.automatic automatically switches between light and dark mode
- Apple Pay in App Clips
- Could revolutionize everydays payment experience when you can eg just tap an NFC tag on a gas station to pay your gas
- Guest checkouts using Apple Pay do not require to setup an account anymore and if it is necessary seamless Sign in with Apple is used.
- Enhancing Apple Pay experience across platforms
- Merchants can receive redacted billing address
- Lower risk of chargebacks for merchnts
- Price transparency leads to higher conversion rates
- Apple Pay for Catalyst
- Brings great payment experiences to more mac apps
- Brings the newly announced APIs, including the Apple Pay button, to the mac
- Improvements in WKWebView will allow more pages to allow Apple Pay transactions now
- Contacts Formatting Improvements to prevent invalid shipping addresses
- Street and city fields contain vaild characters only
- State is a two letter code
- US: Zip code is 5 or 9 digit code
- ISO country code is upper case two letter code
- Improved experience when correcting information
- Raise formatting errors earlier in the payment flow
- Users can correct information prior to authentication
- Error APIs improved and aligned to new formatting options
- Only rolles out in some Australia, Canada, UK, US for now
- Adding cards to Apple Pay
- Issuer Extensions to improve discoverability from within the Wallet app - needs installatioon of an Issuer app
- App requires non-UI extension
- Extension principal object must subclass
PKIssuerProvisioningExtensionHandler - Requires non-UI extension entitlement
- Added support for a UI extension
- Needs to handle re-authentications if required by conforming principal object to
PKIssuerProvisioningExtensionAuthorizationProviding - Requires UI extension entitlement
What's new for web developers
https://developer.apple.com/wwdc20/10663
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Getting started with HealthKit
https://developer.apple.com/wwdc20/10664
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Meet Safari Web Extensions
https://developer.apple.com/wwdc20/10665
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
One-tap account security upgrades
https://developer.apple.com/wwdc20/10666
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Custom app distribution with Apple Business Manager
https://developer.apple.com/wwdc20/10667
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Meet Nearby Interaction
https://developer.apple.com/wwdc20/10668
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Handling FHIR without getting burned
https://developer.apple.com/wwdc20/10669
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Meet Face ID and Touch ID for the web
https://developer.apple.com/wwdc20/10670
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Architecting for subscriptions
https://developer.apple.com/wwdc20/10671
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
What's new in ClassKit
https://developer.apple.com/wwdc20/10672
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore Computer Vision APIs
https://developer.apple.com/wwdc20/10673
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build trust through better privacy
https://developer.apple.com/wwdc20/10676
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Build customized ML models with the Metal Performance Shaders Graph
https://developer.apple.com/wwdc20/10677
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Refine Objective-C frameworks for Swift
https://developer.apple.com/wwdc20/10680
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Explore the new system architecture of Apple Silicon Macs
https://developer.apple.com/wwdc20/10686
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md
Triage test failures with XCTIssue
https://developer.apple.com/wwdc20/10687
Presenters: Example Guy, Another Person
TO-DO! You can contribute to this session, please see CONTRIBUTING.md