Posts

Post not yet marked as solved
1 Replies
342 Views
I lot of the frustration I'm having with trying to do simple things in SwiftUI seems to have to do with the complexity of the types of values involved. Type inference failing, and I'm unable to come up with the right types myself. Error messages not localized to where the actual mistake is!Sure, one can blame me for not completely understanding this, but this is not user friendly.Why does View need to be a generic protocol? Why all the complexity? Why the hard-to-understand error messages?Mind you: I've been coding in swift for several years now, so while I'm not an expert, I'm no novice either.
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
3 Replies
605 Views
For some reason, my app cannot create documents in the "On My iPhone" section in its file browser.I'm using UIDocumentBrowserViewController. UISupportsDocumentBrowser is true in my Info.plist.I see folders for various other apps under "On My iPhone" but there isn't one present for mine.I can create documents in iCloud drive.Is there a setting that enables document creation "On My iPhone." Why would this ever be disabled? (ARGH!)
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
0 Replies
2.2k Views
auval is reporting:Cocoa Views Available: 0Anyone know how to troubleshoot this? I've started with the XCode AUv3 template, and then added my own AudioUnit, which I already use in my stand-alone app. Validation passes otherwise, but I can't load the UI in Logic.
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
0 Replies
431 Views
Is there a way to get a view's frame after layout? I'd like to render a line connecting two views after layout has positioned them.It's hard to upload an image in this utterly substandard forum, so imagine two boxes with a line drawn from the center of one to the center of the other, as you might see in a node graph.thanks!
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
0 Replies
723 Views
Is there a way to get the vertex positions of the triangle in the fragment function, when the mesh is drawn with drawIndexedPrimitives?Seems like I'd have to use drawPrimitives, do the indexing within the vertex function (performance hit), and send the vertex positions on to the fragment stage.
Posted
by Audulus.
Last updated
.
Post marked as solved
3 Replies
937 Views
How can I create a spotlight-style window in my app? Or a window in the style of Xcode's Open Quickly command?It's styled a bit like NSPopover (floating, no title bar, rounded corners), but doesn't have an anchor.
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
1 Replies
497 Views
After encoding with MTLComputeCommandEncoder, my app's memory usage goes from about 450MB to 900MB in the Memory Report. Why would that be? I'm not creating any metal resources on demand.The memory usage does not increase for subsequent encodings. Unfortunately, Instruments does not report the memory increase (it does not report Metal memory usage).This seems to be iOS-only. My macOS version (same code) does not report a large memory increase upon encoding.
Posted
by Audulus.
Last updated
.
Post marked as solved
5 Replies
1.7k Views
I'm using a UIToolbar across the top of my app.When I constrain it to the safe area I get a black band at the top of the screen. So I set the background to the same color, but then I get a thin line at the top of the toolbar. How can I resolve this without the thin border around the toolbar? Is there a clean way to do it? Should I use a UIView instead of UIToolbar? Can I get this UI out of a UINavigationBar? What do Pages/Keynote/Numbers use for their toolbars?When I move the toolbar to the bottom of the safe area, it is somehow smart and draws its color all the way to the bottom of the superview. It seems UIToolbar is meant to live at the bottom of the screen.thanks!
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
0 Replies
323 Views
Regarding 3.1.1, last bullet:Non-subscription apps may offer a free time-based trial period before presenting a full unlock option by setting up a Non-Consumable IAP item at Price Tier 0 that follows the naming convention: “XX-day Trial.” Prior to the start of the trial, your app must clearly identify its duration, the content or services that will no longer be accessible when the trial ends, and any downstream charges the user would need to pay for full functionality. Learn more about managing content access and the duration of the trial period using Receipts and Device Check.So, does this imply I can't have a save-disabled (but time unlimited) trial for my document-based app? It seems that a time-based trial is the only option.Are there any apps with save-disabled trials on the store?thanks!
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
4 Replies
1.4k Views
I'm doing depth peeling with a very simple fragment function:struct VertexOut { float4 position [[ position ]]; }; fragment void depthPeelFragment(VertexOut in [[ stage_in ]], depth2d<float, access::read=""> previousDepth) { float4 p = in.position; if(!is_null_texture(previousDepth) && p.z <= previousDepth.read(uint2(p.xy))) { discard_fragment(); } }(My depth buffer pixel format is `MTLPixelFormatDepth32Float`)This works well on my Mac. In each pass I submit the same geometry, and eventually no more fragments are written and the process terminates. For example, with a test sphere, there are two passes with the same number of fragments written each pass (front and back hemispheres).However on iPad, the process does not terminate. There are some (not all) fragments which, despite being rendered in the previous pass, are not discarded in subsequent passes.What platform differences could cause this?Is the z-coordinate of the position attribute always the value written to the depth buffer?Note that I cannot simply limit the number of passes (I'm not using this for OIT).
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
0 Replies
403 Views
Looks like all the functions to convert an MDLMesh to an MDLVoxelArray are deprecated:https://developer.apple.com/documentation/modelio/mdlvoxelarrayIs there a new way to convert?
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
1 Replies
666 Views
We're having trouble using `texture3d<half, access::read>` on iPhone X.Our tests pass on older iPhones, and all iPads.When we change to texture3d<float, access::read> on iPhone X, our tests pass (without needing to change the underlying texture from `R16Float` to `R32Float`, interestingly).Is anyone else having trouble with texture3d on iPhone X? I'm guessing texture3d<half, ...> is a fairly rare use-case.
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
0 Replies
814 Views
I'm wondering how apps like Pixelmator Pro manage to get the "Integrated title bar and toolbar" appearance without hiding the title (and associated UI)? Normally, to get that look you select Hide Title in IB (aka titleVisibility on NSWindow).thanks!More info: https://stackoverflow.com/questions/51366996/integrated-title-bar-and-toolbar-without-hiding-title-ui
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
3 Replies
741 Views
The forum software here isn't very good. Is it not obvious?Attaching images doesn't work (it used to I think). Navigation is awkward. External links apparently aren't allowed, causing people to write "h ttp://" (why???). Search doesn't seem very good. Seems too easy to post in the wrong forum. Most questions go unanswered.Bottom line: on average you'll have significantly better results posting on Stack Overflow than here.My feedback for Apple is to switch to better forum software like Discourse.
Posted
by Audulus.
Last updated
.
Post not yet marked as solved
5 Replies
1.8k Views
The topic is "Provide feedback or request enhancements to the forums."The first 13 posts I see have nothing to do with that.So my feedback for Apple is: moderate this sub-forum a little, please. Maybe it needs to be more clear what this sub-forum is about. Thanks!
Posted
by Audulus.
Last updated
.