Remove debug prints and fix build warnings
- Remove all print statements from planning engine, data providers, and PDF generation - Fix deprecated CLGeocoder usage with MKLocalSearch for iOS 26 - Fix Swift 6 actor isolation by converting PDFGenerator/ExportService to @MainActor - Add @retroactive to CLLocationCoordinate2D protocol conformances - Fix unused variable warnings in GameDAGRouter and scenario planners - Remove unreachable catch blocks in SettingsViewModel 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,8 @@ import Foundation
|
||||
import PDFKit
|
||||
import UIKit
|
||||
|
||||
actor PDFGenerator {
|
||||
@MainActor
|
||||
final class PDFGenerator {
|
||||
|
||||
// MARK: - Constants
|
||||
|
||||
@@ -380,7 +381,7 @@ actor PDFGenerator {
|
||||
assets: PDFAssetPrefetcher.PrefetchedAssets?,
|
||||
y: CGFloat
|
||||
) -> CGFloat {
|
||||
var currentY = y
|
||||
let currentY = y
|
||||
|
||||
// Card background
|
||||
let cardRect = CGRect(x: margin + 10, y: currentY, width: contentWidth - 20, height: 65)
|
||||
@@ -486,7 +487,7 @@ actor PDFGenerator {
|
||||
}
|
||||
|
||||
private func drawTravelSegment(segment: TravelSegment, y: CGFloat) -> CGFloat {
|
||||
var currentY = y
|
||||
let currentY = y
|
||||
|
||||
let travelRect = CGRect(x: margin + 10, y: currentY, width: contentWidth - 20, height: 35)
|
||||
let travelPath = UIBezierPath(roundedRect: travelRect, cornerRadius: 6)
|
||||
@@ -601,7 +602,7 @@ actor PDFGenerator {
|
||||
}
|
||||
|
||||
private func drawPOIItem(poi: POISearchService.POI, index: Int, y: CGFloat) -> CGFloat {
|
||||
var currentY = y
|
||||
let currentY = y
|
||||
|
||||
// Number badge
|
||||
let badgeRect = CGRect(x: margin + 10, y: currentY, width: 22, height: 22)
|
||||
@@ -887,7 +888,8 @@ extension UIColor {
|
||||
|
||||
// MARK: - Export Service
|
||||
|
||||
actor ExportService {
|
||||
@MainActor
|
||||
final class ExportService {
|
||||
private let pdfGenerator = PDFGenerator()
|
||||
private let assetPrefetcher = PDFAssetPrefetcher()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user