Posts

Post marked as solved
1 Replies
1k Views
In the Human Interface Guidelines for tvOS, under "Tab Bar Customization" on this page:https://developer.apple.com/design/human-interface-guidelines/tvos/interface-elements/tab-bars/It states that:In addition, you can display a logo or other information when the tab bar is visible by supplying accessory views that appear near the leading and trailing ends of the tab bar.In the UITabBar docs the the following property is available:trailingAccessoryViewThe view at the trailing edge of a tab bar on tvOS.Use this property to integrate a custom view at the leading edge of your tab bar interface. Use this view to display a custom logo or give access to custom accessories in your app.https://developer.apple.com/documentation/uikit/uitabbar/3213944-leadingaccessoryviewAnd there is a trailing version too:https://developer.apple.com/documentation/uikit/uitabbar/3213945-trailingaccessoryviewHOWEVER... the property is defined as read only:var leadingAccessoryView: UIView { get }So it can not be set directly in code.I've found no way to set it in a Storyboard file, either directly on a UITabBarController UITabBar, on a UITabBar placed directly on a view controller, or by draging UIViews across onto the UITabBar.I've also tried setting it by creating a custom UITabBar and overriding that property, like so:class CustomTabBar: UITabBar { override var leadingAccessoryView: UIView { return UIImageView(image: UIImage(named: "example-image")) } }I've verified that I have set the tab bar in storyboard to my custom one, and it is using the custom one, but the leadingAccessoryView value is never accessed, and the view it returns is never displayed. (I've also tried returning various different views).-So... How does one set a leadingAccessoryView on a UITabBar in tvOS?-Environment:Xcode version 11.0 (11A420a)Project deployment target: tvOS 13.0Simulator: Apple TV 4K - tvOS 13.0 (17J577)
Posted Last updated
.
Post not yet marked as solved
0 Replies
317 Views
Environment: Xcode version 11.0, build 11A420a - but has also affected previous versions.Has anyone else observed that when working in an asset catalog making changes to images, Xcode will keep working until you try and compile, and it will refuse to clean, run, build, etc. If you try and kill it Xcode stops responding, so it has to be force killed.But then it fails to open, constantly not responding on nearly every attempt. Eventaully it will open, but if you make changes to a few images in the asset catalog it will freeze again.I've lost hours to this bug and have resorted to working on the image assets directly in the file system, editing the json myself etc.Is there a workaround?I have quite a tight deadline for getting an iOS 13 update out, and not being able to run Xcode is somewhat hindering that!
Posted Last updated
.