Post

Replies

Boosts

Views

Activity

Reply to fullScreenCover does not work correctly on iOS 14.1 ~ 14.4
Well both can't be presented at the same time. When $isPresente1 is set true always set $isPresente2 to false and vice versa. The correct thing to will be to use only one fullScreenCover and based on some other state show the appropriate view. Something like below but you will have to work out the details. content .fullScreenCover(isPresented: $isPresente1 || $isPresente2, content: { if isPresente1 { return SOMEView() } else if isPresente2 { return SomeView2() } else { EmptyView() } })
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’22
Reply to is HTTPS://samllappdeveloperassistance.com a scam?
It's very real for US-based developers. https://smallappdeveloperassistance.com Here is the actual federal court record: https://www.govinfo.gov/app/details/USCOURTS-cand-4_19-cv-03074 One of the four law firms: https://www.hbsslaw.com/press/apple-ios-app-developers/us-ios-developers-to-benefit-from-100-million-apple-small-developer-assistance-fund-and-changes-to-app-store-policies-in-developer-antitrust-class-action-settlement Important Dates March 21, 2022 — Exclusion Deadline March 21, 2022 — Objection Deadline May 20, 2022 — Claim Deadline June 7, 2022, at 2 P.M. — Final Approval Hearing Do your due diligence in finding the three law firms but this is one of the four law firms that handled the case for the various plaintiffs and mentions the same site above responsible for dispursing the funds. The Canadian Developers are probably sleeping on this one
May ’22
Reply to SecKeyCreateRandomKey for SecureEnclave crash on iOS 13 simulator
If running on the simulator the MacBook must be equipped with a touch bar or touch id otherwise should be supported on an A7 or later A-series CPU. To prevent the crash on a sim with a touch bar or touch id remove kSecAttrTokenID as String: kSecAttrTokenIDSecureEnclave, or exclude it from sim builds. https://developer.apple.com/documentation/security/certificate_key_and_trust_services/keys/storing_keys_in_the_secure_enclave
Topic: Privacy & Security SubTopic: General Tags:
May ’22
Reply to Menu Picker .onChange (doesn't work for the first selection)
This example shows that it does print on the first selection: import SwiftUI struct ContentView: View {     @State var fruitName: String = "none"     var body: some View {         VStack {             Menu {                 PickFruit(fruitName: $fruitName)             } label: {Text("Select A Fruit")}             Text(fruitName)         }         .onChange(of: fruitName) { [fruitName] newValue in // move onchange to here             print(newValue)             print(fruitName)         }     } } struct PickFruit: View {     let myFruits: [String] = ["Apple","Banana","Grape","Peach"]     @Binding var fruitName: String     var body: some View {         VStack {             Text(fruitName)             Picker("Select", selection: $fruitName) {                 ForEach(myFruits, id: \.self) { myFruits in                     Text(myFruits)                 }             }         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’22