Background Scan for Bluetooth Devices (inc. Apple AirPods) with known Peripheral UUID

In my iOS app, When I scan for Bluetooth devices, I see Peripheral UUID and other data from each nearby device, like below: (uuid: 58B95943-A57E-F818-D3CC-9F8122C64D88, name: “iPad Pro”), advertisementPacket: [“kCBAdvDataRxSecondaryPHY”: 0, “kCBAdvDataRxPrimaryPHY”: 1, “kCBAdvDataIsConnectable”: 1, “kCBAdvDataTimestamp”: 612132622.292843, “kCBAdvDataTxPowerLevel”: 12], rssi: -37 I then wish to continue scanning for a single device with specific UUID in […]

By Kashif
Published
Categorised as bluetooth, core-bluetooth, ios, swift

How to find distance between Pupil Center and Eyeglass Frame Edge

I am trying to measure the real-life distance between the center of the pupil and the top edge of the bottom of the eyeglasses frame, the user is wearing as shown in the photo: I am using ARKIt, and using faceAnchor.leftEyeTransform & faceAnchor.rightEyeTransform, I am able to reliably get the center of the pupils individually. […]

By Kashif
Published
Categorised as arkit, ios, swift

Posting to correct Instagram Account with UIActivityViewController

I am using UIActivityViewController to post images to Instagram app from MY app. I am logged into my Instagram App with multiple accounts. Upon share from MY app, Instagram tries to post to the account ‘A’ which is currently logged in (inside the Instagram app). This makes sense. However, if I now switch to the […]

By Kashif
Published
Categorised as ios, swift, uiactivityviewcontroller

UICollectionViewCell not forcing Cell Size

I am using func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { return CGSize(width: 400, height: 600) } to specify my CollectionView’s cell sizes. It works fine but as soon as I add a width constraint (UILabel.width == ContentView.width) to my UILabel inside the ContentView of the cell, the cell’s width […]

By Kashif
Published
Categorised as autolayout, swift, uicollectionview, uicollectionviewflowlayout

Customizing SLComposeSheetConfigurationItem

I want to customize SLComposeSheetConfigurationItem I am looking to change the font and color for its title and value There does not seem to be any documentation for this but several apps like Evernote have done that. Source: Ios

By Kashif
Published
Categorised as ios, slcomposeviewcontroller, swift

SLComposeServiceViewController height issue

My Share extension’s view height seems to be rendered smaller than needed to accommodate the SLComposeSheetConfigurationItem. as you can see in attachment, it seems to be cut off from the bottom and I have to scroll it to see it all. Any idea why it might be happening. I am not customizing it in any […]

By Kashif
Published
Categorised as ios, slcomposeviewcontroller, swift

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq