Questions tagged [swift4.1]

Use this tag only for questions directly related to changes in version 4.1 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.

Swift 4.1 contains updates to the core language, including more support for generics, new build options, as well as minor enhancements to Swift Package Manager and Foundation. There was also significant progress made in stabilizing the ABI.

Swift 4 is the fourth version of the Swift language developed by Apple that was released in 2017. The language is open source and available on Github (see ).

The development of Swift 4 and its goals can be viewed on the Swift Programming Language Evolution repository on GitHub

229 questions
0
votes
2 answers

SideMenu Functionality in swift 4

I am setting up the side menu by following SideMenu When the app is loaded first the side menu controller is working fine (.menuslide) but when I come back to the same controller from the side menu to the same view controller or any other controller…
0
votes
0 answers

Uiview constraint does'ntwork

I have a problem with constraints. In my project, I have an xib file. In this xib I have UIView with a fixed height. constraits UIView I want UIView I have This is what in my console: Unable to simultaneously satisfy constraints. Probably…
Valter
  • 41
  • 10
0
votes
1 answer

Cannot access button in nib file (UI Testing iOS)

I am writing a UITest case for my view. The problem is I cannot access the button in my nib file view. I gave the accessibility identifier to the button as well but still cannot access it Here is the image I just want to tap on that reject button…
Abdullah
  • 227
  • 4
  • 13
0
votes
0 answers

URLSession.shared.dataTask not working without .resume()

import UIKit struct Course : Decodable{ let id: Int let name: String let link: String let imageUrl: String } class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() let url =…
0
votes
2 answers

What's The Best Way To Collect A Lot Of Information From User?

I'm just learning Swift and IOS development. I have an issue, I'm creating an app that need's to get a lot of information about a product, from the user. There will be many fields the user needs to fill out about this product. At first, I just added…
user8065913
0
votes
1 answer

How to use shift operator with implicit/forced unwrapping in Swift

I have been trying to use shift operator and unwrapping in a piece of code, as I'm learning Swift (FYI just a beginner), so I'm trying out multiple things, but I'm stuck with this operator. Looking at different threads about shift operators, I came…
0
votes
1 answer

how the disable the intermediate appearance of cursor on textFields in a otpscreen in swift 4

I have a OTP screen with 6 textfields and I need the cursor to not to move to the particular textField when I tap on the particular textField. I already implemented the code to automatically move the cursor from one text field to another but if I…
0
votes
0 answers

How to fix dynamic height for individual cells as UIautodimensions is not working

I am creating a wall page like twitter or Facebook in which user can post on the wall it can include image and just text. So based on the content the cell's heights must change, if the post is of one line the row height must be appropriate. I tried…
Bhushan Patil
  • 125
  • 2
  • 12
0
votes
1 answer

how to encrypt string using AES 256, ECB mode with padding pkcs5?

I'm new to iOS and I don't have idea about how to encrypt string using AES 256 with ECB mode and padding I take look of cryptoswift but I get error of key length I have 64 character key and I'm not able to encrypt func aes_Encrypt(AES_KEY: String)…
kruti
  • 47
  • 1
  • 8
0
votes
2 answers

Is it possible to add Swift 4.1 to Xcode 10

My app is currently working on Swift 4.1 in Xcode 9.4.1. Apple announced they will only allow apps built from Xcode 10 as of March 2019. Xcode 10 now only supports Swift 3.3, 4.0 and 4.2. My app can only be run on Swift 4.1 (because of reasons). Is…
0
votes
1 answer

File couldn’t be opened because you don’t have permission to view it error When presenting UIVideoEditorController

enter image description here I am recording video and using avfoundation and after that getting video url provide to UIVIdeoEditorController but am getting error :File couldn’t be opened because you don’t have permission to view it error When…
iOSUser01
  • 21
  • 3
0
votes
1 answer

Swift 4 : How to redraw route if user change the direction in Google map ios

I'm working on an iOS App which draws the path on a map using Polyline options, between source to destination. This works fine. What I need is, if the user starts from source, and instead of taking drawn route towards the destination, the user takes…
Chetan Lodhi
  • 353
  • 1
  • 3
  • 21
0
votes
1 answer

Getting error "data corrupted" while parsing json in swift 4 for Mac OS Application

I am getting an error in json parsing can anyone help me to solve the error. My json data: { "message": "Batch found.", "batch": { "batchID": "BA000000001", "name": "JUN-2014", "code": "TBATCH", "status": 1, "coordinatorName":…
Bishnu Das
  • 161
  • 2
  • 14
0
votes
1 answer

Extension for String enum implementing CaseIterable Swift 4

From swift 4 the protocol CaseIterable in enums has made my life happier but I would like to know if I can create an extension for an enum Type:String,CaseIterable. So far I can create an enum String extension like that: extension RawRepresentable…
Reimond Hill
  • 4,278
  • 40
  • 52
0
votes
1 answer

iOS Crashlytics in Firebase not working in Swift 4.1

First We have integrated Firebase analytics and its working fine. We are able to see the custom events on the dashboard But when we integrate crashlytics crash reports are not displaying on a dashboard. Following are the steps which I…
Akshay Aher
  • 2,525
  • 2
  • 18
  • 33