In Swift 3
let langStr = Locale.current.languageCode
More Related Contents:
- Wait until swift for loop with asynchronous network requests finishes executing
- Catching NSException in Swift
- What is the difference between `let` and `var` in Swift?
- How to generate a random number in Swift without repeating the previous random number?
- What is ARAnchor exactly?
- Initialize @StateObject with a parameter in SwiftUI
- How do I create a segue that can be called from a button that is created programmatically?
- Why are emoji characters like ๐ฉโ๐ฉโ๐งโ๐ฆ treated so strangely in Swift strings?
- Check if `Any` value is object
- ARKit โ What do the different columns in Transform Matrix represent?
- Sort Dictionary by Key Value
- Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
- Calling a Swift class factory method with leading dot notation?
- Can Swift return value from an async Void-returning block?
- What is the cause of this type error?
- Why do I need underscores in swift?
- Check empty string in Swift?
- Unable to run app in Simulator : An error was encountered while running (Domain = LaunchServicesError, Code = 0)
- Why is Equatable not defined for optional arrays
- How to avoid force unwrapping a variable?
- Using “if let…” with many expressions
- Array element cannot be bridged to Objective-C
- Swift – Custom setter on property
- SpriteKit physics in Swift – Ball slides against wall instead of reflecting
- Iterate through a String Swift 2.0
- Convert Firebase Firestore Timestamp to Date (Swift)?
- SwiftUI 2: the way to open view in new window
- Custom Button in SwiftUI List
- CLLocationCoordinate2D can’t be instantiated
- Programmatically Screenshot | Swift 3, macOS