Bundle.main.bundleIdentifier! + ".\(self.rawValue)"
NS
prefix is omitted in swift 3
Working code examples:-
let rawValue = "Testing stackoverflow"
let stringValue1 = Bundle.main.bundleIdentifier! + "test"
let stringValue2 = Bundle.main.bundleIdentifier! + "\(rawValue)"
More Related Contents:
- How to get boolean value from switch state?
- Swift – encode URL
- UIImage(contentsOfFile:) returning nil despite file existing in caches directory [duplicate]
- Swift 2.0 – Binary Operator “|” cannot be applied to two UIUserNotificationType operands
- Swift Compiler Error: “Expression too complex” on a string concatenation
- UITextField’s numerical pad: dot instead of comma for float values
- Find an object in array?
- How to create managedObjectContext using Swift 3 in Xcode 8?
- Decoding JSON Web Tokens in Swift
- iOS difference between isKindOfClass and isMemberOfClass
- UIStackView Distribution Fill Equally
- iOS 11 customise search bar in navigation bar
- How can I debounce a method call?
- Can not save file inside tmp directory
- URLSession.datatask with request block not called in background
- swift: issue in converting string to double
- How to push and present to UIViewController programmatically without segue in iOS Swift 3
- iOS Universal Device App with SpriteKit, how to scale nodes for all views?
- Firebase asynchronous function, what’s in the background queue and what’s not
- How to split filename from file extension in Swift?
- How can I build a URL with query parameters containing multiple values for the same key in Swift?
- Loading a ViewController inside a Container View
- AppDelegate and SceneDelegate when supporting iOS 12 and 13
- Swift override function in extension
- Check if location services are enabled
- Swift Protocol get only settable?
- Set text color and font for UIDatePicker in iOS8/Swift
- How to manage cookies with UIWebView in Swift
- Swift numerics and CGFloat (CGPoint, CGRect, etc.)
- WKWebView function for detecting if the URL has changed