Questions tagged [swift]

Swift is a safe, fast, and expressive general-purpose programming language developed by Apple Inc. for its platforms and Linux. Swift is open-source. Use the tag only for questions about language features, or requiring code in Swift. Use the tags [ios], [ipados], [macos], [watch-os], [tvos], [swiftui], [cocoa-touch], and [cocoa] for (language-agnostic) questions about the platforms or frameworks.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Swift, cannot decode json data

I have a problem when getting data. There is an error with JSONDecoder I couldnt figure out. let data = try JSONSerialization.data(withJSONObject: gists, options: .prettyPrinted) let result = try ...
0
votes
0answers
12 views

Unit test fails to write file to directory, but succeed when isolated

Im developing a content managing library where we fetch Text objects from backend and we convert these objects into Strings in a Localizable.strings file. This is done for multiple languages like this ...
0
votes
0answers
15 views

Custom radioButton on swiftui

I am trying to do a custom radio button for my app project, but swiftui's selector doesnt support a custom radio button. is there a a way to turn my custom design button into a custom radion button?? ...
0
votes
1answer
17 views

Swift Combine: Return local data first and then remote data

Whenever usecase call any method from repository, it should return data save in Core data first and start fetching data from remote server. Once repository receives data from remote server it should ...
0
votes
1answer
16 views

How to display a custom text instead of value on X-Axis in Charts

I'm using LineChart from Danielgindi/Charts. I have a requirement to display custom text instead of values on x-axis. With my implementation, I got this But, I need it as If you observe in the ...
0
votes
1answer
18 views

How can I stop position modifier from changing size of View after modification in SwiftUI?

I am importing my View/Content to a CustomView for some modification and working on, if I use position modifier on my input View/Content and before importing, after importing that View/Content, it ...
0
votes
1answer
16 views

Mirror ImageView for RTL-Language?

How can i mirror a play button image when the language is RTL. I can't find a appropriate option in the Storyboard menu in Xcode 12.
-2
votes
1answer
14 views

Swift: Something went wrong The operation couldn’t be completed. (kCLErrorDomain error 1.)

Сам код, работает отлично, но получаю ошибку в консоли, что нет разрешения использовать Геолокацию, пытался разрешить через настройки приватности, но безуспешно так как в самих настройках нет раздела ...
-1
votes
0answers
9 views

With user imported video, how do you filter for frames based on Vision analysis?

I'd like to perform VNDetectHumanBodyPoseRequests on a video that the user imports through the system photo picker or document view controller. I started looking at the Building a Feature-Rich App for ...
0
votes
1answer
13 views

#warning "FirebaseAnalytics.framework is not included in your target

I have update my pods, and now when i build my ios app, this warning pop ? "FirebaseAnalytics.framework is not included in your target. Please add the FirebaseAnalytics dependency to your ...
0
votes
0answers
12 views

How to integrate Swift based application into a React Native application

I have a small Swift based application with its own navigation that I want to integrate into a larger React Native application. Does anyone have any experience with a task like that? Or maybe some ...
0
votes
0answers
23 views

How to remove spacing between collectionView Items in Swift

I have created a tag item collectionView in tableview - UITableViewCell. I set collectionView Item scrollDirection to .horizontal. collectionView Items frame based on dynamic label width and Height ...
0
votes
0answers
22 views

swift my read more/less button doesn't work

I tried to read more/less functionality to me about label but it doesn't work here my code is @IBAction func onClickReadMore(_ sender: Any) { if isLabelAtMaxHeight { readMore....
0
votes
0answers
9 views

Why a swift generated objc interface header import the objc bridging header

In my project the swift generated objc interface header (such as "ProjectName-Swift.h") import the objc bridging header. See below: But when I create a new project, the interface header ...
0
votes
0answers
5 views

SwiftUI Preview Canvas Module

I have 3 different configurations for my project (Local, Dev, Release) and I can't get SwiftUI preview to work. Compiling failed: no such module 'MyProject'... Objects-normal/x86_64/MyView.2.preview-...

15 30 50 per page
1
2 3 4 5
19449
久草视频新免费_日韩视频一中文字暮_欧美三级片