Bug 39319 - tvOS: Activity Indicators are not showing on the Design Surface.
Summary: tvOS: Activity Indicators are not showing on the Design Surface.
Status: RESOLVED DUPLICATE of bug 36669
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: 6.0.0 (C7)
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2016-03-03 14:47 UTC by Kevin Mullins
Modified: 2016-03-03 20:06 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Interface Builder shows the Activity Indicator, Interface Designer doesn't. (1.44 MB, image/png)
2016-03-03 14:47 UTC, Kevin Mullins

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Kevin Mullins 2016-03-03 14:47:44 UTC
Created attachment 15233 [details]
Interface Builder shows the Activity Indicator, Interface Designer doesn't.

When working with activity designers in a tvOS Storyboard, they don't appear in the design surface (eg. you have to know it's there). While not really a bug, it can make it difficult to visually layout your UI design.

See the attached screen shot for the different behavior between the Interface Designer and Interface Builder.
Comment 1 Alan McGovern 2016-03-03 15:04:45 UTC
Xcode: http://screencast.com/t/yvBXaR0kF
Xamarin Studio: http://screencast.com/t/RItOflG1NF

Apart from a bug where the selection rectangle is not sized correctly, we do appear to render the activity view in the same way as Xcode, including the ridiculously small 'grey' style.

Are you using c7/master builds or something older?
Comment 2 Kevin Mullins 2016-03-03 15:05:58 UTC
Here's my info:

=== Xamarin Studio ===

Version 6.0 (build 4520)
Installation UUID: 0e99c8fb-a1c1-404a-b951-c622bb99389f
	Mono 4.3.2 (mono-4.3.2-branch/ba2e5e4) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 403020467

=== Xamarin.Profiler ===

Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 7.2.1 (9548.1)
Build 7C1002

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: a8da28f
Branch: master
Build date: 2016-02-24 16:50:28-0500

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/kmullins/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23.0.0

Java SDK: /usr
java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b23)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b22, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 600004520
Git revision: a354b2cb9df4b96f50b0ccb960dbdd5a9155510c
Build date: 2016-02-18 14:52:07-05
Xamarin addins: 8e54979f23feee160d245a3c33e43e77779b1eb4
Build lane: monodevelop-lion-master

=== Operating System ===

Mac OS X 10.11.3
Darwin new-host-192-168-1-20.home 15.3.0 Darwin Kernel Version 15.3.0
    Thu Dec 10 18:40:58 PST 2015
    root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64
Comment 3 Alan McGovern 2016-03-03 15:25:12 UTC
As far as i can tell nothing has changed since that revision. Can you share the storyboard which has the invisible activity view?
Comment 4 Kevin Mullins 2016-03-03 15:34:27 UTC
Alan, I'm updating all the existing tvOS docs and sample apps right now so everything is online in the tvOS sample apps.

For this specific instance, look:
 * Documentation - https://developer.xamarin.com/guides/ios/tvos/user-interface/progress-indicators/
 * Sample App - https://developer.xamarin.com/samples/monotouch/tvos/tvProgress/
Comment 5 Alan McGovern 2016-03-03 15:47:00 UTC
Ah hah! It's the 'hides when stopped' property. The renderer considers the spinner to be in the stopped state so it ends up hidden. We should probably just ignore that at design time.
Comment 6 Alan McGovern 2016-03-03 16:41:14 UTC
Actually it looks like a bug in Xcode - apple are now ignoring the 'Hidden' property for UIActivityIndicatorView. It's impossible to hide one in Xcode 7.3 beta5 but it used to work in older Xcode versions.
Comment 7 Alan McGovern 2016-03-03 17:09:36 UTC
The real fix here is to implement a fix for bug #36669.

There's no good workaround either without breaking some expected behaviours. The only thing i can do is implement the same bug as Xcode 7.3 beta5, which is to ignore the 'hidden' attribute for UIActivityIndicatorView as a temporary workaround. It's less awful to see a view when you're not supposed to than it is to not be able to see it when you want to.

Alex, what do you think?
Comment 8 Kevin Mullins 2016-03-03 17:11:34 UTC
I think I would agree Alan, you're normally going to want to see the item in the layout, Apple is getting around this by Animating to Activity Indicator in the design surface (it's animating) I think.
Comment 9 Alan McGovern 2016-03-03 17:16:08 UTC
Xcode 7.2 and older have the correct behaviour in that they grey out all views (including activity indicator view) when they are marked as hidden.

Xcode 7.3 beta5 is buggy in that the greying-out doesn't happen for UIActivityIndicatorView anymore, probably a mistake triggered by their addition of the new animations.

Our ideal situation is that we implemented a good 'greying out' mechanism. Next best is to at least make the common case with UIActivityIndicatorView not-awful.
Comment 10 Alan McGovern 2016-03-03 17:30:25 UTC

*** This bug has been marked as a duplicate of bug 36669 ***
Comment 11 xamarin-release-manager 2016-03-03 20:06:04 UTC
Fixed in version (cycle7)

Author: Alan McGovern
Commit: d108a18657b6c654bb83e29fc4e9850b872e7f9a (xamarin/md-addins)
Included in Commit: 5c3a6ecc68f79fee861104b76c9f0f39d8bde781 (mono/monodevelop)