Post

Replies

Boosts

Views

Activity

Reply to Open app review crashlog .txt file in Xcode 13
maybe is not the same.. but I got here searching a way.. from Test Flight I DO see a crash: if I download I got testflight_feedback.zip unzipping, I can see in in JSON: { "id" : "AILekJY1tZIOmVavWYVqgVE", "timestamp" : "2024-07-22T11:54:02.389Z[UTC]", "appAppleId" : 533461505, "cfBundleShortVersion" : "2.962", "cfBundleVersion" : "176", "deviceModel" : "iPhone11,8", "osVersion" : "16.3.1", "locale" : "it-YE", "carrier" : null, "timezone" : "Europe/Rome", "architecture" : "arm64e", "connectionStatus" : "MOBILE_DATA", "pairedAppleWatch" : "", "appUptimeMillis" : null, "availableDiskBytes" : 1258336256, "totalDiskBytes" : 63933894656, "networkType" : null, "batteryPercentage" : 39, "screenWidth" : 414, "screenHeight" : 896, "emailAddress" : ".......", "comment" : "Altro crash" } here is NOT a reread xcrah log.. any clue? is better to use a TSI??
Jul ’24
Reply to Any UIRefresh Work Around for Mac?
// MARK: Refreshable - Modifier for Refreshable based on OS: **(note: inline code does NOT work... is not my fault...) ** // accesory: public func isCatalyst()->Bool { //tolerate warnings! #if targetEnvironment(macCatalyst) return true #endif return false } public typealias RefreshAction = ()->() private struct MyRefreshableModifier: ViewModifier { internal init(action: @escaping RefreshAction) { self.action = action } private let action: RefreshAction public func body(content: Content) -> some View { #if os(iOS) // Catalyst IS under iOS: if isCatalyst(){ content }else{ content .refreshable { action() } } #elseif os(macOS) content // nada. We throw away #endif } } public extension View { func portableRefreshableModifier(action: @escaping RefreshAction) -> some View { modifier(MyRefreshableModifier(action: action) ) } } // usage: /* List { Text("Hello World") Text("Hello World") Text("Hello World") }.refreshable { print("refresh....") } will be: List { Text("Hello World") Text("Hello World") Text("Hello World") }.portableRefreshableModifier { print("refresh....") } */
Sep ’23
Reply to failed to demangle witness for associated type 'Body' after installing iOS 17.0 (21A5277g)
fixed downloading xccode Version 15.0 beta 5 (15A5209g). God bless us! BUT... no tTest flight!! Unsupported Xcode or SDK Version. Your app was built with a version of Xcode or SDK that is not yet supported for upload to App Store Connect. For more information about supported versions of Xcode and SDK for Testflight or App Store submissions, view the App Store Connect What's New page (https://developer.apple.com/app-store-connect/whats-new/). (ID: a1433239-95a6-42db-88d9-c3bc0365679f)
Jul ’23
Reply to Check if iOS 14 is available in SwiftUI body
it seems working in Xcode 12.5 but we do have a WORSE case. Suppose You need to write something like that: struct InfoSheetView: View {     if #available(iOS 15, *) {     } else {     } var body: some View { ..... } } even if an EMPTY if # I got: Expected declaration on if #.. I would like to write ..     if #available(iOS 15, *) { @Environment(\.dismiss) var dismiss     } else {     @Environment(\.presentationMode) var presentationMode     } see original example at: https://www.hackingwithswift.com/quick-start/swiftui/how-to-present-a-new-view-using-sheets and try to conditionally use @Environment(\.dismiss) var dismiss OR     @Environment(.presentationMode) var presentationMode
Aug ’21