Reputation: 4300
I want to be able to use the camera switch icon that is listed here not the plain one the switch one. https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/BarIcons.html
But in Xcode under my bar button item it does not seem to be listed?
I understand I am probably missing something blatantly obvious. Can anyone help with this?
Upvotes: 12
Views: 30776
Reputation: 2938
My 5cnt
Since iOS 13 I think the proper way would be to use SF-Symbols (just download the app). They are free and configurable
(Human Interface Guidelines )
Upvotes: 0
Reputation: 16301
We are talking about this like
Your aim is to grab the 1x and 2x icons? There are several online resources (free and paid), but I assume your aim is to get those icons from the device directly in some way.
Those are the ones coming from the UITabBarItem
init with TabBarSystemItem
self.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:0]
If you are going to extract all of them, see here to have an idea.
If you want just to list them, taking a look at the headers you will find
typedef enum {
UITabBarSystemItemMore,
UITabBarSystemItemFavorites,
UITabBarSystemItemFeatured,
UITabBarSystemItemTopRated,
UITabBarSystemItemRecents,
UITabBarSystemItemContacts,
UITabBarSystemItemHistory,
UITabBarSystemItemBookmarks,
UITabBarSystemItemSearch,
UITabBarSystemItemDownloads,
UITabBarSystemItemMostRecent,
UITabBarSystemItemMostViewed,
} UITabBarSystemItem;
Upvotes: 8