Skip to content

Instantly share code, notes, and snippets.

View 0xfeedface1993's full-sized avatar

John Corner 0xfeedface1993

View GitHub Profile
@T1T4N
T1T4N / URLSession+DataTaskProgressPublisher.swift
Last active May 2, 2023 07:39
Emulating a DataTaskPublisher with Progress
#if canImport(Combine)
import Foundation
import Combine
@available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension URLSession {
public typealias DataTaskProgressPublisher =
(progress: Progress, publisher: AnyPublisher<DataTaskPublisher.Output, Error>)

iPhone

Model(s) Physical Size Points (Standard) Points (Zoomed) Scale Device Resolution Screen Resolution
iPhone 16 Pro Max 6.9" 440 x 956 375 x 812 @3x 1320 x 2868 1320 x 2868
iPhone 16 Pro 6.3" 402 x 874 320 x 693 @3x 1206 x 2622 1206 x 2622
iPhone 16 Plus 6.7" 430 x 932 375 x 812 @3x 1290 x 2796 1290 x 2796
iPhone 16 6.1" 393 x 852 320 x 693 @3x 1179 x 2556 1179 x 2556
iPhone 15 Pro Max 6.7" 430 x 932 375 x 812 @3x 1290 x 2796 1290 x 2796