Closed markst closed 3 years ago
Appears that adding the Xcode build phase breaks our PreviewProvider live views.
PreviewProvider
Based on SO answer it appears we can conditionally run the swiftformat when previewing:
if [ $ENABLE_PREVIEWS = NO ]; then "${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat" "$SRCROOT" fi
https://stackoverflow.com/questions/57261501/xcode-11-beta-4-swiftui-preview-build-phase-agvtool-incompatible
Appears that adding the Xcode build phase breaks our
PreviewProvider
live views.