nicklockwood / iRate

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#irate
Other
4.1k stars 734 forks source link

Get bundle id smarter #275

Closed blackcolt closed 7 years ago

blackcolt commented 7 years ago

Why don't you get the bundleIdentifier like so:

iRate.sharedInstance().applicationBundleID = Bundle.main.bundleIdentifier! as String

nicklockwood commented 7 years ago

iRate sets the bundle ID automatically using

[[NSBundle mainBundle] bundleIdentifier]

Which is equivalent to the code you pasted. You only need to set it manually yourself if you want to override it for some reason.