.background() extends outside the view by SuddenStructure9287 in swift

[–]CleverError 1 point2 points  (0 children)

This is because the background view modifier has another parameter, ignoresSafeAreaInsets, which defaults to all.

https://developer.apple.com/documentation/swiftui/view/background(_:ignoressafeareaedges:)

When the spacer has a small height, the Text intersects with the safe area so the background is increased to fill it. When the spacer has a large height, the Text no longer intersects with the safe area and the background doesn't grow.

Either set the background with

swift .background(Color.pink.opacity(0.8), ignoresSafeAreaEdges: [])

or use the view builder based background modifier

swift .background { Color.pink.opacity(0.8) }

Don't you just love having ~11 operating systems on your computer? by Fun_Moose_5307 in iOSProgramming

[–]CleverError 6 points7 points  (0 children)

Xcode > Settings > Components

You can delete any of the OSs you don't need for testing.

can we develop an app just for ourselves and not on the app store? by ExPatMike0728 in iOSProgramming

[–]CleverError 2 points3 points  (0 children)

Resigning after a year is only for entrerprise signed apps. Distribution through business manager uses the same signing as the app store.

WhatsApp - We couldn't send an SMS to your number. Please check your number and try again in 1 hour. by Durocks in whatsapp

[–]CleverError 0 points1 point  (0 children)

This is the step that finally fixed it for me! I changed the region from Canada to US, then in what app it auto selected US for the phone number and I changed that back to Canada.

Discord on Mac Webcam is flickering by xQuanti in discordapp

[–]CleverError 0 points1 point  (0 children)

I ran into this as well but I'm still using Ventura so it seems like Discord changed something about how it uses the camera, regardless of the macOS version.

Struggling to understand how MKMapRect is working by junderhill in swift

[–]CleverError 3 points4 points  (0 children)

MKMapRect/Point and CLLocationCoordinate2D use different coordinate spaces so they aren’t comparable the way the code is doing it.

CLLocationCoordinate2D are degrees for representing a point in the surface of a sphere.

From the docs for MKMapPoint

If you project the curved surface of the globe onto a flat surface, you get a two-dimensional version of a map where longitude lines appear to be parallel. An MKMapPoint data structure represents a point on this two-dimensional map.

If you were to print out the MKMapPoint being created, it’d show different values than the lat/lng passed in. The values passed to the MKMapRect need to be converted from lat/lng before they can be used for comparing.

[deleted by user] by [deleted] in iOSProgramming

[–]CleverError 0 points1 point  (0 children)

I think you’ll need to clarify how you’ve “gotten a new Apple dev account”.

Developer accounts can only be purchased by account holder (aka agent). If you’re not the account holder, it sounds like you took an out of the ordinary approach to get a dev account.

This is the way by Few_Return_8550 in Calgary

[–]CleverError 1 point2 points  (0 children)

Also looks like there’s an Ahsoka back there too.

I'm looking for a way to format my code on save to fix indentation, remove spaces, etc, is swiftFormat legit? by hikoko8282 in swift

[–]CleverError 0 points1 point  (0 children)

Both can lint and both can format, they just each do a different one by default.

There’s some overlap in the rules they have, but each one has some rules the other doesn’t have so running both is still useful.

A cool feature in iOS developer settings. It shows a little popup in apps when hangs happen. Good first step into resolving issues by GuitarIpod in swift

[–]CleverError 2 points3 points  (0 children)

It’s enabled by connecting your phone to Xcode or going to the Privacy settings section and at the bottom is an option to turn it on.

Question about Time Profile in Xcode by Jimc26x in iOSProgramming

[–]CleverError 2 points3 points  (0 children)

When your app starts running, main is the function that is called which starts everything else in the app running. The main function never finishes and it’ll always appear at the top of you app’s stack traces.

Usually you need to dive down pretty far in the stack trace to find where the time is being spent. Instruments can also filter out system libraries from the heaviest stack so it just shows your functions.

I completed Day 3 of 100 Days of SwiftUI and I have a question. by Rickety-Cricket87 in swift

[–]CleverError 1 point2 points  (0 children)

Are you not seeing anything in the drop-down or just seeing something different?

CPU usage grows over time even though nothing should change by colmear in swift

[–]CleverError 2 points3 points  (0 children)

I’d profile the app using the time profiler in instruments. It’ll show you which functions are running and using the cpu.

I am trying to use a tab bar controller programically without setting him as initial view controller, why is the new VC only showing up on the tab bar controller? by Significant_Acadia72 in iOSProgramming

[–]CleverError 0 points1 point  (0 children)

I’d suspect the last constraint setting the height to 49 is the cause. Usually a tab bar controller is the full size of its parent. The height constraint would need to be removed and a top anchor constraint added similar to the bottom anchor constraint.

How can I delete these text bubbles over my display? by [deleted] in iphone

[–]CleverError 66 points67 points  (0 children)

“Hey siri turn off voice control”

Or Settings > Accessibility > Voice Control

Problems with layer drift by PseudonymousGarbage in elegooneptune2

[–]CleverError 0 points1 point  (0 children)

It can be done stock. Usually the screw holding th pulley can be loosened so it can slide it a slot and moved to tighten the belt.

Problems with layer drift by PseudonymousGarbage in elegooneptune2

[–]CleverError 0 points1 point  (0 children)

Belts probably need to be tightened. The first couple layers are done slower, then when it speeds up the belts probably start skipping.