Considering that many browsers allow the user to change the user-agent string to whatever they wish, I would say that no part of it identifies the device vendor.
Looking at whatismybrowser.com, it seems that your best bet is to look for the string "Mac OS X" (yes, even after name changes to "OS X" and "macOS") as that seems to be included in the user-agent string for iPad OS and iPhone OS as well, but a browser on any non-Apple device could also include it (again, the user can often change the user-agent string as they wish), so you can't be 100% certain that they are on an Apple device just because the string is there.
Then again, someone changing their user agent to something that looks like an Apple device probably wants you to think they're on such a device, so you might as well humor them unless you actually need to know their device in order to do something only capable on that device - in which case you probably shouldn't do user-agent matching anyway but instead use other methods to figure out what the current device is capable of.
Examples:
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
- Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
- Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
Examples taken from: