12

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? enter image description here

I understand I am probably missing something blatantly obvious. Can anyone help with this?

2
  • Have you tried this?
    – Lucas
    Commented Jun 15, 2016 at 10:47
  • Just looking at this does this mean i have to download a icon library from somewhere? as it doesnt mention the camera switch icon? Commented Jun 15, 2016 at 11:05

2 Answers 2

8

We are talking about this like

enter image description here

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;
2
0

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 )

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.