.presentationPlacement(.leading) does not work!

When I try to apply .presentationPlacement(), I get this error:

dyld[7938]: Symbol not found: _$s7SwiftUI21PresentationPlacementV7leadingACvgZ Referenced from: <CB0145C5-9776-3B71-9209-70D2B3EDB772> /private/var/containers/Bundle/Application/101B4DDE-56D9-4742-AABB-AE11E2415145/ShopperTransit2026.app/ShopperTransit2026.debug.dylib Expected in: <1FA062F0-69E6-3C8A-962D-F3DEF020CB94> /System/Library/Frameworks/SwiftUI.framework/SwiftUI

Even having the method show up when using an extension View {}, it still causes this problem

I'm not sure exactly why this is caused. Guessing from the missing symbol error, that Xcode does not have this symbol in the code. However, this line of code does work in #Preview {}. So I am completely unsure as to why it doesn't work on regular hardware.

Does anyone have a clue why?

I should also mention I am currently on Xcode 27 beta 6 using a MacBook Pro 14 inch - M1 Pro.

I tried launching my app on my iPad Pro 11 inch - M4

One more thing...

Here's the example that gave me the issue


extension View {
    
    @ViewBuilder
    func leadingPresentationIfAvailable() -> some View {
        if #available(iOS 27.0, *) {
            self.presentationPlacement(.leading)
        } else {
            self
        }
    }
    
}
import MapKit

struct DriverTrackerView: View {
    
    @State private var isSheetPresented = true
    
    var body: some View {
        ZStack {
            Map()
            
        }
        .sheet(isPresented: $isSheetPresented) {
                VStack {
                    EmptyView()
                        .padding()
                }
            
            .presentationDetents([.fraction(0.1), .medium, .large])
            .presentationDragIndicator(.visible)
            .presentationBackgroundInteraction(.enabled)
            .interactiveDismissDisabled()
            .presentationSizing(.fitted)
            .leadingPresentationIfAvailable()
        }
    }
}

#Preview {
    DriverTrackerView()
}
.presentationPlacement(.leading) does not work!
 
 
Q