[Solved] NSBundle.mainBundle().bundleIdentifier! + “.\(self.rawValue)” in swift 3.0?


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)"

enter image description here

2

solved NSBundle.mainBundle().bundleIdentifier! + “.\(self.rawValue)” in swift 3.0?