Skip to content

Commit 5f83daa

Browse files
committed
ObjC→Swift: Phase 0 dead LC purge + MediaPicker Swift camera
Delete five unreachable LegacyComponents types and prefer the modern Camera preview in the default media-picker grid (Phase 2 start). Co-authored-by: D3C0Y <decoder-dev@users.noreply.github.com>
1 parent bef9325 commit 5f83daa

12 files changed

Lines changed: 11 additions & 636 deletions

‎docs/plans/objc-to-swift-migration.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,19 @@ Already done (do not redo):
7070
| Orphan headers in umbrella | Prune `LegacyComponents.h` exports for deleted symbols | Compile clean under `-Werror` |
7171
| Doc drift | Keep this plan + `SWIFT_MIGRATION.md` inventory in sync after each delete wave | Docs match `find`/`wc` |
7272

73+
**2026-08-10 wave:** deleted `PGPhotoCustomFilterPass`, `TGBotInfo`,
74+
`TGModernMediaListItemContentView`, `TGStickerAssociation`,
75+
`UIScrollView+TGHacks` (+ umbrella exports).
76+
7377
**Exit:** Continuous; run a pass before each numbered phase.
7478

79+
## Phase 2 — Camera (finish the parallel migration) — IN PROGRESS
80+
81+
**2026-08-10:** Media picker default asset mode now uses the Swift
82+
`CameraSimplePreviewView` path instead of `TGAttachmentCameraView`.
83+
`presentedLegacyCamera` / chat attach menu and Passport attach camera intents
84+
still use `TGCameraController` until those send-signal pipelines are flipped.
85+
7586
## Phase 1 — Passport (pilot cluster) — DONE 2026-08-10
7687

7788
**Why first:** Smallest real neck. External Swift uses of the Passport ObjC

‎submodules/LegacyComponents/PublicHeaders/LegacyComponents/LegacyComponents.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
#import <LegacyComponents/TGBackdropView.h>
5858
#import <LegacyComponents/TGBotComandInfo.h>
5959
#import <LegacyComponents/TGBotContextResultAttachment.h>
60-
#import <LegacyComponents/TGBotInfo.h>
6160
#import <LegacyComponents/TGBotReplyMarkup.h>
6261
#import <LegacyComponents/TGBotReplyMarkupButton.h>
6362
#import <LegacyComponents/TGBotReplyMarkupRow.h>
@@ -245,7 +244,6 @@
245244
#import <LegacyComponents/TGSecretTimerMenu.h>
246245
#import <LegacyComponents/TGStaticBackdropAreaData.h>
247246
#import <LegacyComponents/TGStaticBackdropImageData.h>
248-
#import <LegacyComponents/TGStickerAssociation.h>
249247
#import <LegacyComponents/TGStickerPack.h>
250248
#import <LegacyComponents/TGStickerPackReference.h>
251249
#import <LegacyComponents/TGStringUtils.h>
@@ -272,4 +270,3 @@
272270
#import <LegacyComponents/UIControl+HitTestEdgeInsets.h>
273271
#import <LegacyComponents/UIImage+TG.h>
274272
#import <LegacyComponents/UIImage+TGMediaEditableItem.h>
275-
#import <LegacyComponents/UIScrollView+TGHacks.h>

‎submodules/LegacyComponents/PublicHeaders/LegacyComponents/TGBotInfo.h‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎submodules/LegacyComponents/PublicHeaders/LegacyComponents/TGStickerAssociation.h‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎submodules/LegacyComponents/PublicHeaders/LegacyComponents/UIScrollView+TGHacks.h‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎submodules/LegacyComponents/Sources/PGPhotoCustomFilterPass.h‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)