View wwdc_2022_Friday_Sessions.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Accelerate machine learning with Metal | |
Author fast and reliable tests for Xcode Cloud | |
Bring multiple windows to your SwiftUI app | |
Build device-to-device interactions with Network Framework | |
Create Swift Package plugins | |
Create accessible Single App Mode experiences | |
Create custom catalogs at scale with ShazamKit | |
Discover Benchmarks in App Analytics | |
Discover Managed Device Attestation | |
Efficiency awaits: Background tasks in SwiftUI |
View InfoDictionary.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// InfoDictionary.swift | |
// FrameUp | |
// | |
// Created by Ryan Lintott on 2021-05-11. | |
// | |
import SwiftUI | |
struct InfoDictionary { |
View FetchAndDecode.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A URLSession extension that fetches data from a URL and decodes to some Decodable type. | |
// Usage: let user = try await URLSession.shared.decode(UserData.self, from: someURL) | |
// Note: this requires Swift 5.5. | |
extension URLSession { | |
func decode<T: Decodable>( | |
_ type: T.Type = T.self, | |
from url: URL, | |
keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy = .useDefaultKeys, | |
dataDecodingStrategy: JSONDecoder.DataDecodingStrategy = .deferredToData, | |
dateDecodingStrategy: JSONDecoder.DateDecodingStrategy = .deferredToDate |
View PreviewProviderModifier.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
enum PreviewProviderMode: CaseIterable { | |
/// Use for a light appearance preview. | |
case lightMode | |
/// Use for a dark appearance preview. | |
case darkMode | |
View addfont.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM http://www.msfn.org/board/topic/119612-how-to-install-a-font-via-the-command-line/ | |
@ECHO OFF | |
TITLE Adding Fonts.. | |
REM Filename: ADD_Fonts.cmd | |
REM Script to ADD TrueType and OpenType Fonts for Windows | |
REM By Islam Adel | |
REM 2012-01-16 | |
REM How to use: |