Just use native Swift Array
. Use always Swift native types unless you have absolutely no choice. NSArray
lacks type information so the compiler cannot infer that the array contains dictionaries.
if let datas = dict["data"] as? [[String:Any]] {
More Related Contents:
- How to run an iOS app that causes runtime error for frameworks “code signature invalid”
- Expected declaration error for making high score [duplicate]
- Could not insert new outlet connection: Could not find any information for the class named
- The app delegate must implement the window property if it wants to use a main storyboard file swift
- Changing tab bar item image and text color iOS
- Append String in Swift
- Loading ViewController from xib file
- What is the difference between Int and Int32 in Swift?
- The default app has not been configured yet
- Swift: Long Press Gesture Recognizer – Detect taps and Long Press
- In SwiftUI, how to use UIHostingController inside an UIView or as an UIView?
- iOS app testing. App installation failed. No code signature found [closed]
- Set UITableView’s height to the height of its content with Auto Layout
- SwiftUI: Translucent background for fullScreenCover
- Accessing variables from another ViewController in Swift
- Xcode 10 build fails with ‘Command CompileSwift failed with a nonzero exit code
- How to only disable scroll in ScrollView but not content view?
- How to get a Swift type name as a string with its namespace (or framework name)
- How to filter Firebase data in Swift?
- Swift – Checking unmanaged address book single value property for nil
- How do you properly order data from Firebase chronologically
- ios swift: Is it possible to change the font style of a certain word in a string?
- getting data from each UITableView Cells Swift
- Swift: Failed to assign value to a property of protocol?
- How to tap on a specific point using Xcode UITests
- main.async vs main.sync() vs global().async in Swift3 GCD
- How to merge two UIImages?
- SwiftUI tappable subtext
- Enable or Disable Iphone Push Notifications inside the app
- Get the frame of UIBarButtonItem in Swift?