Log Into Apple Account

When a user first downloads my application they are prompted to sign into their apple account via a pop up.

I have not had this pop up previously, I believe the change occurred after iOS18.

I have functions that do a few things:

Retrieves userRecordID Retrieves a userprofile(via userrecordid) from cloudkit.

Included is my function:

    func fetchUserRecordID() async throws -> CKRecord.ID {
        let container = CKContainer.default()
        do {
            let recordID = try await container.userRecordID()
            print("User record ID: \(recordID.recordName)")
            return recordID
        } catch {
            // Handle error
            throw error
        }
    }
Log Into Apple Account
 
 
Q