Post

Replies

Boosts

Views

Activity

SwiftUI ScrollView is not flipped in RTL
as you can see from the scroll indicator its starting from the end import SwiftUI struct ContentView: View {   var body: some View {     ScrollView(.horizontal) {       HStack {         ForEach(0..<20) { i in           Text("\(i)")             .padding()         }       }     }     .environment(\.layoutDirection, .rightToLeft)   } } struct ContentView_Previews: PreviewProvider {   static var previews: some View {     ContentView()   } }
2
0
1.7k
Apr ’22
Xcode(13.2.1) Unable to install "iosApp", on real device
Ever since I got the new m1 (macOS Monterey) I cannot build my Kotlin Multiplatform app on a real device. I have tried: resigning using the new format by following the apple documentation removing/changing provisioning profiles. here are the details of the error I get: Details Unable to install "iosApp" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 User Info: {     DVTErrorCreationDateKey = "2022-03-11 09:12:04 +0000";     IDERunOperationFailingWorker = IDEInstalliPhoneLauncher; } -- The code signature version is no longer supported. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 User Info: {     DVTRadarComponentKey = 261622;     MobileDeviceErrorCode = "(0xE8008029)";     "com.apple.dtdevicekit.stacktrace" = ( 0   DTDeviceKitBase                     0x00000001215ef076 DTDKCreateNSErrorFromAMDErrorCode + 220 1   DTDeviceKitBase                     0x000000012162d6e8 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 2   DVTFoundation                       0x000000010dff3fb4 DVTInvokeWithStrongOwnership + 71 3   DTDeviceKitBase                     0x000000012162d432 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1420 4   IDEiOSSupportCore                   0x00000001213509ea __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3508 5   DVTFoundation                       0x000000010e12898b __DVT_CALLING_CLIENT_BLOCK__ + 7 6   DVTFoundation                       0x000000010e12a0f7 __DVTDispatchAsync_block_invoke + 931 7   libdispatch.dylib                   0x00007ff819bc3ad8 _dispatch_call_block_and_release + 12 8   libdispatch.dylib                   0x00007ff819bc4cc9 _dispatch_client_callout + 8 9   libdispatch.dylib                   0x00007ff819bcacee _dispatch_lane_serial_drain + 696 10  libdispatch.dylib                   0x00007ff819bcb7c8 _dispatch_lane_invoke + 366 11  libdispatch.dylib                   0x00007ff819bd57e1 _dispatch_workloop_worker_thread + 758 12  libsystem_pthread.dylib             0x00007ff819d7b074 _pthread_wqthread + 326 13  libsystem_pthread.dylib             0x00007ff819d79ffb start_wqthread + 15 ); } -- Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {     "device_model" = "iPhone10,4";     "device_osBuild" = "15.3.1 (19D52)";     "device_platform" = "com.apple.platform.iphoneos";     "launchSession_schemeCommand" = Run;     "launchSession_state" = 1;     "launchSession_targetArch" = arm64;     "operation_duration_ms" = 5282;     "operation_errorCode" = "-402620375";     "operation_errorDomain" = "com.apple.dt.MobileDeviceErrorDomain";     "operation_errorWorker" = IDEInstalliPhoneLauncher;     "operation_name" = IDEiPhoneRunOperationWorkerGroup;     "param_consoleMode" = 0;     "param_debugger_attachToExtensions" = 0;     "param_debugger_attachToXPC" = 1;     "param_debugger_type" = 5;     "param_destination_isProxy" = 0;     "param_destination_platform" = "com.apple.platform.iphoneos";     "param_diag_MainThreadChecker_stopOnIssue" = 0;     "param_diag_MallocStackLogging_enableDuringAttach" = 0;     "param_diag_MallocStackLogging_enableForXPC" = 1;     "param_diag_allowLocationSimulation" = 1;     "param_diag_gpu_frameCapture_enable" = 0;     "param_diag_gpu_shaderValidation_enable" = 0;     "param_diag_gpu_validation_enable" = 0;     "param_diag_memoryGraphOnResourceException" = 0;     "param_diag_queueDebugging_enable" = 1;     "param_diag_runtimeProfile_generate" = 0;     "param_diag_sanitizer_asan_enable" = 0;     "param_diag_sanitizer_tsan_enable" = 0;     "param_diag_sanitizer_tsan_stopOnIssue" = 0;     "param_diag_sanitizer_ubsan_stopOnIssue" = 0;     "param_diag_showNonLocalizedStrings" = 0;     "param_diag_viewDebugging_enabled" = 1;     "param_diag_viewDebugging_insertDylibOnLaunch" = 1;     "param_install_style" = 0;     "param_launcher_UID" = 2;     "param_launcher_allowDeviceSensorReplayData" = 0;     "param_launcher_kind" = 0;     "param_launcher_style" = 0;     "param_launcher_substyle" = 0;     "param_runnable_appExtensionHostRunMode" = 0;     "param_runnable_productType" = "com.apple.product-type.application";     "param_runnable_swiftVersion" = "5.5.2";     "param_runnable_type" = 2;     "param_testing_launchedForTesting" = 0;     "param_testing_suppressSimulatorApp" = 0;     "param_testing_usingCLI" = 0;     "sdk_canonicalName" = "iphoneos15.2";     "sdk_osVersion" = "15.2";     "sdk_variant" = iphoneos; } -- System Information macOS Version 12.2.1 (Build 21D62) Xcode 13.2.1 (19586) (Build 13C100) Timestamp: 2022-03-11T11:12:04+02:00 this is the code sign of the app : Executable=/Users/yammine/Library/Developer/Xcode/DerivedData/Belight.tv-cjjqumcursyzwgexwmngzqpjxuhd/Build/Products/Debug-iphoneos/iosApp.app/iosApp Identifier=belight.tv.mobile Format=app bundle with Mach-O thin (arm64) CodeDirectory v=20400 size=173557 flags=0x0(none) hashes=5413+7 location=embedded VersionPlatform=2 VersionMin=983552 VersionSDK=983552 Hash type=sha256 size=32 CandidateCDHash sha256=ae1b67b0146f3cd850f8b50c811a30b0074e459c CandidateCDHashFull sha256=ae1b67b0146f3cd850f8b50c811a30b0074e459ccf67664a03c126325513e08e Hash choices=sha256 CMSDigest=ae1b67b0146f3cd850f8b50c811a30b0074e459ccf67664a03c126325513e08e CMSDigestType=2 Executable Segment base=0 Executable Segment limit=9486336 Executable Segment flags=0x11 Page size=4096 -7=b82416cc7a192ddfb0e55772ad1c5665dc56603b7270c27f276b7386ff210d24 -6=0000000000000000000000000000000000000000000000000000000000000000 -5=ecd453cfb0a1a40dee167d7ba4c8eb6f63853a2a337425a64656515b582c3158 -4=0000000000000000000000000000000000000000000000000000000000000000 -3=570369fde135209c46f351df9690b3e76fe1d9733f8c8ea342f367dbf9a097ec -2=0fb4a4176ef550d3bbaa6681c6282857e2554ba65de2f68af504028fa7e0322e CDHash=ae1b67b0146f3cd850f8b50c811a30b0074e459c Signature size=4797 Authority=Apple Development: yammine@tomorrow.services (3DPU6CX8ZZ) Authority=Apple Worldwide Developer Relations Certification Authority Authority=Apple Root CA Signed Time=Mar 11, 2022 at 11:11:54 AM Info.plist entries=31 TeamIdentifier=5BSNGUTQ53 Sealed Resources version=2 rules=10 files=20 Internal requirements count=1 size=196
4
1
2.2k
Mar ’22
SwiftUI NavigationView swipe back is not flipped in RTL
Swipe back gesture to dismiss is not getting flipped (stays from left to right). but the view and slide out animation are getting flipped import SwiftUI struct ContentView: View {   var body: some View {     NavigationView {       NavigationLink("hello, world!", destination: Text("hello, world!"))     }     .environment(\.layoutDirection, .rightToLeft)   } } struct ContentView_Previews: PreviewProvider {   static var previews: some View {     ContentView()   } }
0
0
1.2k
Apr ’22