Questions tagged [swift3]

Use this tag only for questions directly related to changes in version 3 of Apple's Swift programming language. Use the tag [swift] for more general language questions, or the tags [ios], [cocoa], [apple-watch] etc for questions about developing on Apple platforms.

I have written the following code to upload a profile image using Alamofire. Now the problem is that when I upload an image, the API get executed successfully but the image not gets uploaded. But if ...

I have created a share extension tapping on which I am opening my app through open url schema. Once my task is done I need to navigate back to app from which open url is called.
Like if it is called ...

When you convert HTML tags into Attributed text using, init(data:options:documentAttributes:) initialiser on NSAttributed String, It takes considerable amount of time to load on first call (As Data ...

I'm just trying to have a form for users to create a ticket in my app. Nothing else is needed besides that.
I have used the methods here https://developer.zendesk.com/embeddables/docs/ios_support_sdk/...

I made a parallax background, in GameScene.sks I added an empty node, added two sprites to an empty node. I have a reset button, when I click on it I need the background to be removed and added to its ...

I was trying to make a function that can iterate through any string and return the most common character within that string. My progress is shown below. I was trying to insert the character array into ...

I have a function for uploading some pictures and string in a class.
func uploadPhoto(serviceName:String,parameters: [String:Any]?, completionHandler: @escaping (clsResponsePostPhotoID?, NSError?) -&...

I am trying to use audio call in app, But when I call from a device to other device, It does not connect with device and automatically disconnected with twilio Api. What is that problem occurred in ...

I was just looking at Context menu of Facebook and or slack and wanted to create something similar in my App.
I have tried two methods.
First method. Having a in View Table View and sliding it from ...

I have a UItextField called textField on a static cell tableView. That field contains a currency amount - like "$10,000.00".
When editing that amount, the currency and thousand grouping symbols are a ...

I want to be notified when audio playback is completed. For this II listen to AVPlayerItemDidPlayToEndTime notification. But I have issue that it's called also when stream is interrupted i.e. internet ...

I have some JSON data that I am getting from my database. I can pull it fine and load it into my table view. my issue is separating my JSON data so I can section the tableview. I have JSON array like ...

I want to create two variables - one with today's day of the week (Monday - Sunday) and one with the current time. I want to do more than just display it in a label, but am just trying that for now.
...

I'm using Firebase Cloud Messaging (FCM) with ios app. I'm now trying to get a data message without notification using following method
application(_:didReceiveRemoteNotification:)
Can I send a data ...

I want to get a callback or notification as soon as my segment control is out of the screen bounds. My collection view has a Custom header view at top.
In the past when I had only 1 UIElement in my ...

I got a function to flip my collection view cells, which is working fine. My problem is that I want to flip all the cells and not just this one visible cell, so when I swipe to next cell it will be ...

I have this code but for some reason it's just drawing a rout between 2 points (first, and last points) ignoring all other points which is [index == 1 to index == n-1 ]
output : route between only 2 ...