Post

Replies

Boosts

Views

Activity

Reply to iOS15 NavigationView lost the state after putting app in background and bring it back
Move the parent NavigationView from LocalNotificationDemoView to the MainView tabs. There is no need for the .navigationViewStyle(.stack) modifier. struct LocalNotificationDemoView: View {     var body: some View {         VStack {             MainView()         }     } } struct MainView: View {     var body: some View {         TabView {             NavigationView {                 Tab1()             } .tabItem {                 Text("Tab1")             }             NavigationView {                 Tab2()             }.tabItem {                 Text("Tab2")             }         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Reply to How to know the active & foreground scene in multi-windows supported iPadOS app?
Traverse the scene hierarchy for an active or main window something like below. Might need tweaking. extension UIWindow { public static var keyWindow: UIWindow ? { if #available(iOS 13.0, *) { return UIApplication.shared.connectedScenes .compactMap { $0 as? UIWindowScene } .first?.windows.filter { $0.isKeyWindow }.first } else { return UIApplication.shared.keyWindow } } }
Topic: App & System Services SubTopic: Hardware Tags:
Nov ’21
Reply to FTP in swift 5
Why not just use REST Apis?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Why, when assigning a parent record to a shared child record, is the parent record itself changed?
Serialize the operation allowing permitting the root to complete any reference updates.
Replies
Boosts
Views
Activity
Nov ’21
Reply to App Keeps Crashing on iPAD - App Store Review
Did you include the privacy statement string in the info.plist?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to UITextView.becomeFirstResponder() triggers scroll animation to selection even when disabling view animations
What does the view hierarchy look like? Begin there.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Embedded Assembler in Xcode C++ routines?
https://clang.llvm.org/compatibility.html#inline-asm
Replies
Boosts
Views
Activity
Nov ’21
Reply to iOS15 NavigationView lost the state after putting app in background and bring it back
Move the parent NavigationView from LocalNotificationDemoView to the MainView tabs. There is no need for the .navigationViewStyle(.stack) modifier. struct LocalNotificationDemoView: View {     var body: some View {         VStack {             MainView()         }     } } struct MainView: View {     var body: some View {         TabView {             NavigationView {                 Tab1()             } .tabItem {                 Text("Tab1")             }             NavigationView {                 Tab2()             }.tabItem {                 Text("Tab2")             }         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to I want to delete the RPScreenRecorder-startCapture confirmation message.
Apple's Privacy mandate & transparency.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Double initialized as Decimal returns number with trailing fractional digits
Hence the reason for visual formatters. Don't the Decimal type unless you really need to.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Double initialized as Decimal returns number with trailing fractional digits
Hence the reason for visual formatters. Don't use the Decimal type unless you really need to. var x:Double = 0.94 var result = "" print(x, terminator: "", to: &result) print(result) // 0.94
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Auto-hide an iOS app following a user action
Listen to your vendor it's why they were hired to do the job.
Replies
Boosts
Views
Activity
Nov ’21
Reply to How to know the active & foreground scene in multi-windows supported iPadOS app?
Traverse the scene hierarchy for an active or main window something like below. Might need tweaking. extension UIWindow { public static var keyWindow: UIWindow ? { if #available(iOS 13.0, *) { return UIApplication.shared.connectedScenes .compactMap { $0 as? UIWindowScene } .first?.windows.filter { $0.isKeyWindow }.first } else { return UIApplication.shared.keyWindow } } }
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to How to copy screenshots from xcode test suite
Take a look at XCTAttachment documentation.
Replies
Boosts
Views
Activity
Nov ’21
Reply to How to keep a sidebar item selected when navigation link is triggered in the detail view on iPadOS with SwiftUI?
You need to store the row selected in a state variable. See the Fruta sample code for SmoothieList. @State private var selection: String? ... NavigationLink(tag: some_kind_value_to_tag_each_nav_link_from_list, selection: $selection) ...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Can user with older version of iOS buy an app that supports only newer versions?
No. There is no magic, You will have to code & provide support for lower APIs.
Replies
Boosts
Views
Activity
Nov ’21
Reply to Rating limitations
Please read the API documentation - Apple controls this algorithm.
Replies
Boosts
Views
Activity
Nov ’21