swift – iOS: 24 hour time formatting not honored with Area=Canada, Language=French

swift – iOS: 24 hour time formatting not honored with Area=Canada, Language=French

[ad_1] If Language is French and Area is Canada, the Languge & Area pane in Settings reveals present 24 hour time formatting, as does the remainder of iOS and inventory apps. But when I create a easy SwiftUI app, 12 hour AM/PM formatting continues to be used. var physique: some View { VStack { Textual…

ios – Displaying CloudKit Public Database Document in SwiftUI Checklist

ios – Displaying CloudKit Public Database Document in SwiftUI Checklist

[ad_1] I’m attempting to show Wisconsin sports activities schedules in my SwiftUI app which might be saved within the CloudKit Public Database. I’ve a file within the CloudKit Public Database referred to as Schedule. Inside that file, I’ve indexes of recordName, channel, gameDate, gameLocation, gameTime, otherTeam, and wiTeam (all indexes are marked as Queryable). I’ve…

ios – SwiftUI 4 NavigationStack Append View in navigationDestination fail

ios – SwiftUI 4 NavigationStack Append View in navigationDestination fail

[ad_1] I used to be making an attempt the brand new NavigationStack in swiftUI 4 and I discovered an attention-grabbing downside If I created a view like that RootView() .navigationDestination(for: Route.self, vacation spot: { route in NavigationBarContainerView { ViewRouter().routeToView(with: route) }.toolbar(.hidden) }) Then I appended a routing Path to it Routing.shared.appendPath(.confirmEmail) then contained in the…

ios – RCTFatal+668 error in TestFlight however runs completely effective in Expo-Go

ios – RCTFatal+668 error in TestFlight however runs completely effective in Expo-Go

[ad_1] Presently, I’ve an expo-cli managed app. After I run it by means of the Expo Go app on the simulator or my precise cellphone, it really works completely, however once I construct it by means of eas construct and submit it to TestFlight, it crashes upon clicking a button. It says that the error…

swift – What’s the greatest technique for saving a “Most Lately Used” doc record on iOS?

swift – What’s the greatest technique for saving a “Most Lately Used” doc record on iOS?

[ad_1] Is there a foolproof manner of saving the URL of a UIDocument so an software can resume enhancing the doc on subsequent launch? I’ve tried varied methods of saving the URL, however typically the doc URL will barely differ from what is anticipated. For instance, the next code: var scoresURL = FileManager.default.urls(for: .documentDirectory, in:…

ios – React native The app references personal selectors in Payload

ios – React native The app references personal selectors in Payload

[ad_1] I’ve the next challenge once I add my React Native app to the app retailer The app references personal selectors in Payload/AppGeolocNative.app/AppGeolocNative: getAuthorizationStatus:, isPassthrough, newSocketQueueForConnectionFromAddress:onSocket:, onSuccess:, relativeSize, removeValuesForKeys:completion:, socket:didAcceptNewSocket:, socket:didConnectToHost:port:, socket:didConnectToUrl:, socket:didReadData:withTag:, socket:didReadPartialDataOfLength:tag:, socket:didReceiveTrust:completionHandler:, socket:didWriteDataWithTag:, socket:didWritePartialDataOfLength:tag:, socket:shouldTimeoutReadWithTag:elapsed:bytesDone:, socket:shouldTimeoutWriteWithTag:elapsed:bytesDone:, socketDidCloseReadStream:, socketDidDisconnect:withError:, socketDidSecure:, spanArray, spanArray_Count, strikeThrough, underline I do probably not perceive what’s the challenge, all…

ios – Cannot convert throwing to non-throwing completion block error

ios – Cannot convert throwing to non-throwing completion block error

[ad_1] I’ve an @objc protocol outlined like this: @objc public protocol MyDelegate: AnyObject { @objc func foo( completion: @escaping (FooResult) -> Void ) throws } the place FooResult is: @objc public enum FooResult: Int { case succeeded case delayed } I then have a service MyService whose perform bar will get known as with a…

ios – Apple Enterprise Programm expired resulting from much less then 100 staff, the best way to use Jenkins CI now?

ios – Apple Enterprise Programm expired resulting from much less then 100 staff, the best way to use Jenkins CI now?

[ad_1] Our situation: We’re a 25 individuals media company, producing Android/iOS apps for a number of prospects. We’re utilizing Unity to create them and deploy these apps by way of Jenkins CI on a Mac Mini M1. Builders utilizing both Home windows PCs or Macs to submit their modifications to the initiatives repository. As for…

Unhealthy Entry exception at startup in Xcode 14.0.1 debugger (iOS)

Unhealthy Entry exception at startup in Xcode 14.0.1 debugger (iOS)

[ad_1] Our iOS app, which was working usually on Xcode 13.4.1, now has an exception at startup underneath Xcode 14.0.1. Thread 1: EXC_BAD_ACCESS (code=1, handle=0x1176aca60) However that is solely seen when debugging; if I run it straight on machine, it seems to run wonderful. Nonetheless an issue as a result of we can not debug…

Why is FirebaseApp.configure() not working after I run my swift (iOS) program?

Why is FirebaseApp.configure() not working after I run my swift (iOS) program?

[ad_1] I maintain getting the next error: Thread 1: "The default FirebaseApp occasion should be configured earlier than the default Authinstance will be initialized. A method to make sure that is to name FirebaseApp.configure() within the App Delegate’s software(_:didFinishLaunchingWithOptions:) (or the @essential struct’s initializer in SwiftUI).", nonetheless I have already got imported FirebaseCore and have…

ios – How can I repair pencilKit toolbar?

ios – How can I repair pencilKit toolbar?

[ad_1] I’m attempting to make a drawing app for IOS 15.5 utilizing pencilKit. I can draw on display however when i wish to change device utilizing toolPicker it isn’t really altering(it retains drawing with default one) right here is my code import UIKit import PencilKit class ViewController: UIViewController, PKCanvasViewDelegate, PKToolPickerObserver{ @IBOutlet weak var canvasView: PKCanvasView!…

ios – SwiftUI: The way to know change within the printed var of an ObservableObject

ios – SwiftUI: The way to know change within the printed var of an ObservableObject

[ad_1] I’ve a View which reveals checklist of Toggle’s based mostly on the Mannequin knowledge. This mannequin has a @Printed variable which modifications based mostly toggle choice. class Mannequin: ObservableObject, Hashable { var id: String @Printed var isSelected: Bool init(id: String, isSelected: Bool) { self.id = id self.isSelected = isSelected } … } class ViewModel:…

ios – Learn how to examine textfield enter textual content with decimal level

ios – Learn how to examine textfield enter textual content with decimal level

[ad_1] I wish to examine textual content with 0~20 with decimal level.Like 0.01 & 19.99 Learn how to forestall person enter 001 or 02……ect. func textField(_ textField: UITextField, shouldChangeCharactersIn vary: NSRange, replacementString string: String) -> Bool { guard let textual content = textField.textual content as NSString? else { return false } let finalText = textual…

ios – Save button heart place and cargo it in view controller Loaded

ios – Save button heart place and cargo it in view controller Loaded

[ad_1] Hi guys sorry for my english, i´m working in app that’s able to transfer a bunch of buttons, every of them, on display screen with UIPanGestureRecognizer, save heart place (x,y) and tag in Core Knowledge. When the app begins from zero and that i load place from Core Knowledge: if let c = ButtonEntity.getButton(tag:…

ios – UIButton click on not working whether it is built-in in SwiftUI venture

ios – UIButton click on not working whether it is built-in in SwiftUI venture

[ad_1] In SwiftUI I’ve a VStack with faucet gesture enabled. And this VStack Accommodates two buttons. One button is from UIKit and different one is from SwiftUI itself. If I click on SwiftUI button, it’s working as anticipated. However after I click on UIKit button it’s not working as a substitute faucet gesture is triggering,…

ios – openssl command password drawback for Kubernete certificates

ios – openssl command password drawback for Kubernete certificates

[ad_1] I’m attempting so as to add certificates for Kubernetes, however once I run the next command on cmd (MacOS): openssl ec -in mycompany-robert.key -out mycompany-robert.dkey I get the next immediate: learn EC key Enter PEM cross phrase: Then I enter some password, however it’s not accepted and get the next error: unable to load…

ios – iCloud doc .NSUbiquityIdentityDidChange notification would not work

ios – iCloud doc .NSUbiquityIdentityDidChange notification would not work

[ad_1] I’m constructing a swiftUI app. I’m utilizing iCloud Paperwork for storing and syncing knowledge. I’m attempting to examine availability of iCloud on app launch utilizing following func isICloudContainerAvailable()->Bool { if let currentToken = FileManager.default.ubiquityIdentityToken { return true } else { return false } } If iCloud Drive setting is turned off this returns false….

swift – ios charts line graph Deadly error: Vary requires lowerBound

swift – ios charts line graph Deadly error: Vary requires lowerBound

[ad_1] let xAxis = chartView.xAxis xAxis.labelPosition = .backside xAxis.labelFont = .systemFont(ofSize: 10) xAxis.axisLineColor = .clear xAxis.labelTextColor = .clear xAxis.gridColor = .clear xAxis.spaceMin = 0.4 xAxis.spaceMax = 4.4 xAxis.drawGridLinesEnabled = false enter picture description right here enter picture description right here I added xAxis.spaceMin and xAxis.spaceMax to place area on either side. xAxis.spaceMin is utilized correctly,…

Android Accessibility by Tutorials | raywenderlich.com

Android Accessibility by Tutorials | raywenderlich.com

[ad_1] Accessibility is a vital, typically missed, a part of constructing a top quality app. The Net Content material Accessibility Tips (WCAG) might be complicated and it’s typically unclear apply these pointers to Android. On this e book, you’ll find out about constructing accessible apps on Android utilizing WCAG by means of hands-on, step-by-step tutorials….

swift – iOS SwiftUI – PhotosPicker getting mime kind from chosen file

swift – iOS SwiftUI – PhotosPicker getting mime kind from chosen file

[ad_1] I am utilizing this code to select video or picture utilizing PhotosPicker: PhotosPicker( choice: $selectedItem, matching: matching: .any(of: [.images, .videos]), photoLibrary: .shared()) { Textual content(“edit”) .padding(.horizontal, 18) .padding(.vertical, 2) .background(Colour.black.opacity(0.5)) .cornerRadius(12) } .onChange(of: selectedItem) { newItem in Activity { if let information = strive? await newItem?.loadTransferable(kind: Information.self) { selectedFileData = information // mimeType =…

ios –  spherical shadow corners from curl animation of UIView?

ios – spherical shadow corners from curl animation of UIView?

[ad_1] I’m making an attempt to animate UIView utilizing UIView.transition with [.transitionCurlUp] as argument possibility. Nevertheless, the corners are nonetheless proven as invisible components that the shadow falls on: class ViewController: UIViewController { @IBOutlet weak var buttonToBeCurled: UIView! { didSet { let faucet = UITapGestureRecognizer(goal: self, motion: #selector(curlTappedView)) buttonToBeCurled.addGestureRecognizer(faucet) buttonToBeCurled.layer.cornerRadius = 35 buttonToBeCurled.backgroundColor = UIColor.purple…

The place View.job will get its main-actor isolation from – Ole Begemann

The place View.job will get its main-actor isolation from – Ole Begemann

[ad_1] SwiftUI’s .job modifier inherits its actor context from the encompassing perform. In the event you name .job inside a view’s physique property, the async operation will run on the principle actor as a result of View.physique is (semi-secretly) annotated with @MainActor. Nevertheless, for those who name .job from a helper property or perform that…

ios – The way to animate a UILabel that resizes in parallel with its container view

ios – The way to animate a UILabel that resizes in parallel with its container view

[ad_1] I’m attempting to animate a multi-line label inside a UIView. Within the container view, the width of the label is relative to the bounds. When the container view is animated, the label jumps to the ultimate state after which the container resizes. How can I as a substitute animate the correct facet of the…

android – Structurally problem with Offline Knowledge Sync in Cellular Software

android – Structurally problem with Offline Knowledge Sync in Cellular Software

[ad_1] Good morning, We now have construct a cellular app with offline first help. It really works within the following method Preliminary we do a Grasp Knowledge Sync (obtain some data from the server earlier than the app will get useful/ prepared to make use of, with a updatedAt[before] now()) Delta Knowledge Sync (obtain up…

ios – Why primitive integer can’t be handed as a thread parameter?

ios – Why primitive integer can’t be handed as a thread parameter?

[ad_1] In my swift code, I begin a thread with an integer parameter. However I discovered the thread operate acquired just isn’t as similar because the one handed in Thread.init(). If I exploit string to hold the parameter, the worth acquired is identical as I handed. That is my code: @objc func run_with_uint(param: UInt) {…

ios – Swift: handle with Customized SegmentControllCell to tableview cell?

ios – Swift: handle with Customized SegmentControllCell to tableview cell?

[ad_1] Hi guys, I attempted to handle from customized phase management cell into ViewController’s tableview cell. That is My Customized Section Management Class protocol SegmentControllerCellDelegate: AnyObject { func manageSegmentControl(cell: SegmentControllerCell)} class SegmentControllerCell: UITableViewCell, ReusableView, NibLoadableView { @IBOutlet weak var segmentController: UISegmentedControl! weak var delegate: SegmentControllerCellDelegate? override func awakeFromNib() { tremendous.awakeFromNib() setupUI() } @IBAction func tappedSegmentControll(_…

ios – How do I segue to the subsequent display screen from my UITableView Programmatically?

ios – How do I segue to the subsequent display screen from my UITableView Programmatically?

[ad_1] I’m attempting to implement the coordinator sample and deal with a UITableView, under is the code I’m utilizing: Gadgets Coordinator: import UIKit class ItemsCoordinator: ItemsBaseCoordinator { var parentCoordinator: MainBaseCoordinator? var rootViewController: UIViewController = UIViewController() func begin() -> UIViewController { rootViewController = UINavigationController(rootViewController: ItemsViewController(coordinator: self)) return rootViewController } func moveTo(stream: AppFlow, userData: [String : Any]?…

goal c – Periodic iOS background location updates

goal c – Periodic iOS background location updates

[ad_1] I did write an app utilizing Location providers, app should ship location each 10s. And it labored very nicely. Simply use the “allowDeferredLocationUpdatesUntilTraveled:timeout” technique, following Apple’s doc. Steps are as follows: Required: Register background mode for replace Location. 1. Create LocationManger and startUpdatingLocation, with accuracy and filteredDistance as no matter you need: -(void) initLocationManager…

android –  Get your individual iphone14 at no cost

android – Get your individual iphone14 at no cost

[ad_1] The iPhone 14 seems to be an identical to the iPhone 13, however there is a new 6.7-inch mannequin known as the iPhone 14 Plus. Below-the-hood enhancements embrace 6GB of RAM, a 5-core GPU, Bluetooth 5.3, and a number of digital camera updates. Coloration choices have been up to date with (PRODUCT)RED, blue, purple,…