正规365体育投注

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], [cocoa-touch], and [cocoa] for (language-agnostic) questions about the platforms or frameworks.

Filter by
Sorted by
Tagged with
0
votes
1answer
5 views

'MKCoordinateRegionMake' is unavailable in Swift

I am migrating from swift 3 to swift 5.1, I get this error 'MKCoordinateRegionMake' is unavailable in Swift
0
votes
0answers
7 views

Understanding “Use of undeclared type” in inherited generic class

I just came across this curious cookie and can't figure out if I'm more surprised by the fact that this doesn't work as expected or that this the first time I'm seeing this in the past five years ...
0
votes
0answers
9 views

How to set a realm database file path so that it can be used in the IOS device? [duplicate]

I am a beginner for the SwiftUI. I tried to use realm as the database, and use the default database to store my data. I try to use the follow code to determine the path of the file: let bundle = ...
0
votes
0answers
6 views

Searchbar not refreshing UIbutton color

Here is my headache... Hope someone has the medecine. The situation - I have a searchbar linked to a tableview just below - Tableview cell is made of 1 label and 1 button - The button is a "favorite" ...
-2
votes
0answers
8 views

Why get the navigation triggered multiple times in iPad using SwiftUI?

In my application the navigation inside a DoubleColumnNavigationViewStyled NavigationView gets triggered multiple times. I have tried the a StackNavigationViewStyle() and it worked, but the UI not ...
0
votes
0answers
5 views

Watchkit Picker item spacing

For whatever reason, my picker items are being cut-off (ie. the y in weekday is not fully shown, see image Picker Interface). Is there a way to add spacing to items in a picker list? I'm adding the ...
-1
votes
1answer
21 views

how can I do to use same variable name, but different data type in Swift

I get error when I was assigned the different value in same variable name. This is the error: cannot assign value of type '[String]' to type 'String' and this is the code: var data: String data = "...
0
votes
0answers
11 views

Alert xib, Swift

I've created a view alert (.xib) with File Ower's setted and his .swift file with some OUTLET and stuff. ( with func awakeFromNib() and viewWillAppear methods) This is how a xib is usually called (I ...
0
votes
0answers
9 views

Swift expression evaluator (LLDB): error while loading Swift module

I have a target with mixed Swift and Objective-C code. I do the following: I put a breakpoint on a line in a Swift file part of this target. I run this target. I type po $someVariableName in the ...
0
votes
0answers
13 views

UIView Extension does not work on app first launch

I am using the following UIView extension: http://github.com/snoozelag/GoneVisible I have successfully downloaded the file and added the Swift file and I am using the extension to hide (gone method)...
0
votes
1answer
8 views

How to call appdelegate.swift after logout in ios swift?

I have have been working on the FCM token. Initially, I can able to register FCM token and receive the token from FCM. My issue is while doing log out, I have been calling delete FCM token API call ...
-1
votes
0answers
7 views

How to get support of Tamil language in localisation in swift 5

I apply localisation in my application in Hindi and Tamil language. But during that it support for Hindi, but in Tamil it show base language (means english).
0
votes
1answer
14 views

Swift UI camera shows portrait view but image turns out landscape

I'm trying to get camera preview and photos working in a swiftUI app, I can display the preview and snap a photo but proportions are coming out wrong. The preview screen looks good, but as soon as the ...
0
votes
0answers
6 views

How Can I Create True Model for Firebase Result?

I created a posts document and there is a comments array inside of it. Posts struct working well there is not any problem there but Comments model has a problem. Generally I got errors like that when ...
0
votes
0answers
6 views

How to webview access camera in ios swift?

I have a webapplication that accesses the camera of a device for scanning qr code. It is working fine in Safari Webbrowser, but in Swift iOS WKWebview it is just white! Here it is working fine: But ...

15 30 50 per page
1
2 3 4 5
17350