Home Blog Page 3920

ios – Learn how to cut back the scale of Materials Showcase in SwiftUI?


I wish to current showcase first time after login. so i simply discovered just one showcase framework in iOS known as material-showcase-ios however with this i can getting very large view due to that one showcase presents on high of one other… so i would like to scale back the scale of showcase, please assist me.

i would like to make use of a number of showcases so right here is the code: added this package deal: github “aromajoin/material-showcase-ios” ~> 0.8.0 and under code

import SwiftUI
import MaterialShowcase

struct ShowcaseHost: UIViewRepresentable {
@Binding var isPresented: Bool
var showcaseItem: ShowcaseItem

func makeUIView(context: Context) -> UIView {
    let view = UIView(body: .zero)
    DispatchQueue.predominant.async {
        if isPresented {
            showShowcase(on: view, showcaseItem: showcaseItem)
        }
    }
    return view
}

func updateUIView(_ uiView: UIView, context: Context) {}

func showShowcase(on targetView: UIView, showcaseItem: ShowcaseItem) {
    guard let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
          let window = windowScene.home windows.first else { return }

    // Alter goal view place primarily based on alignment
    targetView.translatesAutoresizingMaskIntoConstraints = false
    window.addSubview(targetView)
    
    // Alter the scale of the goal view for higher animations
    let targetSize: CGFloat = 50
    
    swap showcaseItem.animation {
    case .topLeading:
        NSLayoutConstraint.activate([
            targetView.topAnchor.constraint(equalTo: window.topAnchor, constant: 50),
            targetView.leadingAnchor.constraint(equalTo: window.leadingAnchor, constant: 50),
            targetView.widthAnchor.constraint(equalToConstant: targetSize),
            targetView.heightAnchor.constraint(equalToConstant: targetSize)
        ])
   
    case .middle:
        NSLayoutConstraint.activate([
            targetView.centerXAnchor.constraint(equalTo: window.centerXAnchor),
            targetView.centerYAnchor.constraint(equalTo: window.centerYAnchor),
            targetView.widthAnchor.constraint(equalToConstant: targetSize),
            targetView.heightAnchor.constraint(equalToConstant: targetSize)
        ])
    }

    let imageView = UIImageView(picture: UIImage(systemName: "digicam.fill"))
    imageView.contentMode = .scaleAspectFit
    imageView.translatesAutoresizingMaskIntoConstraints = false
    targetView.addSubview(imageView)

    NSLayoutConstraint.activate([
        imageView.centerXAnchor.constraint(equalTo: targetView.centerXAnchor),
        imageView.centerYAnchor.constraint(equalTo: targetView.centerYAnchor),
        imageView.widthAnchor.constraint(equalTo: targetView.widthAnchor, multiplier: 0.8),
        imageView.heightAnchor.constraint(equalTo: targetView.heightAnchor, multiplier: 0.8)
    ])
    
    // Configure and present the showcase
    let showcase = MaterialShowcase()
    showcase.setTargetView(view: targetView)
    showcase.primaryText = showcaseItem.primaryText
    showcase.secondaryText = showcaseItem.secondaryText
    showcase.backgroundPromptColor = showcaseItem.backgroundColor
    showcase.primaryTextColor = showcaseItem.textColor
    showcase.secondaryTextColor = showcaseItem.textColor
    showcase.targetHolderColor = UIColor.white

    DispatchQueue.predominant.asyncAfter(deadline: .now() + 0.1) {
        showcase.present(completion: {
            isPresented = false
            targetView.removeFromSuperview()
        })
    }
}
}

struct ShowcaseItem {
let primaryText: String
let secondaryText: String
let animation: AnimationTypeShowcase
let backgroundColor: UIColor
let textColor: UIColor
}

enum AnimationTypeShowcase {
case topLeading, bottomTrailing, bottomLeading, topTrailing, middle
}

and utilizing that in display screen like this

struct HomeNew: View {

@State personal var showShowcase = false
@State personal var showShowcaseDashboard = false


var profileShowcase: ShowcaseItem {
    ShowcaseItem(
        primaryText: "Profile",
        secondaryText: "Click on right here to take a look at your profile and Transport Particulars",
        animation: .topLeading,
        backgroundColor: UIColor(pink: 0.984, inexperienced: 0.906, blue: 0.631, alpha: 1.0), //.systemPink,
        textColor: .white
    )
}

var dashboardShowcase: ShowcaseItem {
    ShowcaseItem(
        primaryText: "Dashboard",
        secondaryText: "Click on right here to entry Dashboards",
        animation: .middle,
        backgroundColor: UIColor(pink: 0.47, inexperienced: 0.75, blue: 0.78, alpha: 1.0),
        textColor: .white
    )
}

var physique: some View {
    ZStack{
        Coloration.Neumorphic.predominant
            .ignoresSafeArea()
        
        VStack{
            
            VStack{
                HStack(alignment: .middle) {
                    URLImageView(url: userPhoto.percentageEncoding(), placeholder: "NoProfilePic", width: 80, peak: 80)
                        .cornerRadius(15)
                        .scaledToFit()
                        .overlay(
                            RoundedRectangle(cornerRadius: 15)
                                .stroke(Coloration.appGreen, lineWidth: 2)
                        )
                    
                        .onTapGesture {
                            if showShowcase {
                                showShowcase = false
                            } else {
                                gotoProfile = true
                            }
                        }
                }
                Spacer()
                
            }
            .padding(16)
        }
        
        ScrollView {
            VStack(spacing: 0) {
                VStack(spacing: 0) {
                    HStack(spacing: 10) {
                        ZStack {
                            
                            HStack {
                                Spacer()
                                Textual content("View dashboard")
                                    .font(.calibriRegular(with: 16))
                                    .foregroundColor(.appGreen)
                                
                            }
                        }
                    }
                }
                .body(peak: 40)
                
                .onTapGesture {
                    if showShowcaseDashboard {
                        showShowcaseDashboard = false
                    } else {
                        gotoDashboard = true
                    }
                }
            }
        }
        
        if showShowcase {
            ShowcaseHost(isPresented: $showShowcase, showcaseItem: profileShowcase)
                .onAppear {
                    DispatchQueue.predominant.asyncAfter(deadline: .now() + 1) {
                        showShowcase = false
                    }
                }
        }
        
        if showShowcaseDashboard {
            ShowcaseHost(isPresented: $showShowcaseDashboard, showcaseItem: dashboardShowcase)
                .onAppear {
                    DispatchQueue.predominant.asyncAfter(deadline: .now() + 1) {
                        showShowcaseDashboard = false
                    }
                }
        }
    }
}
}

o/p: right here how one can cut back the scale, please assist.

enter image description here

enter image description here

Android 15 beta 4.2 is now accessible for the Pixel 9 sequence

0


Google Pixel 9 colors side by side

C. Scott Brown / Android Authority

TL;DR

  • Android 15 beta 4.2 is now accessible for the Pixel 9 and Pixel 9 Professional XL. The Pixel 9 Professional and 9 Professional Fold will seemingly get their variations nearer to their in-store availability date.
  • The Pixel 9 sequence shipped with Android 14, the primary time {that a} mainline Pixel shipped with final yr’s OS model.
  • With Android 15 beta 4.2 accessible for these telephones, we anticipate the steady model of the OS to land quickly.

When Google took the wraps off the Pixel 9 sequence, one thing was amiss: the telephones shipped with Android 14 out of the field, not the anticipated Android 15. This represents the primary time ever {that a} mainline Pixel cellphone shipped with the earlier yr’s Android model.

To make issues much more complicated, early reviewers couldn’t even set up the most recent Android 15 beta as a result of it was unavailable for these telephones. At this time, although, Google is partially rectifying this by rolling out Android 15 beta 4.2 to the 2 at the moment accessible telephones within the Pixel 9 sequence: the Pixel 9 and Pixel 9 Professional XL. The Pixel 9 Professional and Pixel 9 Professional Fold are omitted as a result of not but being accessible to customers.

Though it’s too early to say for sure, it’s unlikely that there’s something new on this launch of Android 15 as in comparison with the discharge many people have been utilizing for weeks now on Pixel 8 and earlier telephones. Nonetheless, contemplating the Pixel 9 sequence launched with Android 14, the provision of Android 15 beta is actually welcome.

Provided that we’re so late within the recreation for the beta rollouts of Android 15, we anticipate to see it go steady fairly quickly. It might be this month, or it might be in September, however the newest it might be is nearly actually October. Within the meantime, if you happen to completely don’t need Android 14 in your shiny new Pixel 9, you’ve gotten the choice to go beta now.

Acquired a tip? Discuss to us! E mail our workers at information@androidauthority.com. You possibly can keep nameless or get credit score for the data, it is your selection.

Leagues Cup returns to MLS Season Move on Apple TV on July 26

0



August updates trigger Home windows Server boot points, freezes


August updates trigger Home windows Server boot points, freezes

Microsoft has confirmed and stuck a identified concern inflicting efficiency points, boot issues, and freezes on Home windows Server 2019 techniques after putting in the August 2024 safety updates.

The corporate acknowledged the difficulty following widespread studies from Home windows admins saying that servers on their environments have been experiencing efficiency points and large lags, changing into unusable after putting in the KB5041578 cumulative replace.

“After putting in the August 2024 Home windows safety replace, launched August 13, 2024 (KB5041578), you would possibly observe that some Home windows Server 2019 units expertise system slowdowns, unresponsiveness, and excessive CPU utilization notably with Cryptographic Companies,” Microsoft confirmed on Wednesday.

“A restricted variety of organizations reported that the difficulty was noticed when the system was working an Antivirus software program which performs scans towards the ‘% systemrootpercentsystem32catroot2’ folder for Home windows updates, because of an error with catalog enumeration.”

Whereas Redmond does not identify the antivirus course of inflicting these points, affected admins have linked them to the Antimalware Service Executable service, the Home windows Defender background course of.

Microsoft added that in impacted IT environments, admins will observe that the affected servers:

  • Present elevated CPU utilization
  • Expertise elevated disk latency/ disk utilization
  • Point out degraded OS or software efficiency
  • Present that the Cryptographic Companies (CryptSVC) service fails to begin
  • Might boot right into a black display screen
  • Expertise sluggish boot
  • Freeze or grasp

These utilizing Residence or Professional Home windows editions are unlikely to expertise this identified concern as a result of the state of affairs triggering it’s extra frequent in enterprise environments.

​Fastened by way of Identified Situation Rollback

Microsoft has resolved this widespread identified concern by means of Identified Situation Rollback (KIR) and is working to incorporate the repair in a future Home windows replace. KIR is a Home windows characteristic that helps reverse flawed non-security updates delivered by way of Home windows Replace.

To resolve the difficulty on impacted Home windows enterprise-managed units, Home windows admins should set up and arrange the Home windows 10 1809 and Home windows Server 2019 KB5041578 240816_21501 Identified Situation Rollback Group Coverage. Following set up, you will discover the Group Coverage beneath Laptop Configuration > Administrative Templates.

To deploy the Identified Situation Rollback, go to the Native Laptop Coverage or the Area coverage on the area controller utilizing the Group Coverage Editor to decide on the Home windows model you need to goal. Subsequent, restart the affected system(s) to use the group coverage setting.

Yow will discover additional steering on deploying and configuring KIR Group Insurance policies on the Microsoft help web site.

“As soon as the replace with the decision is launched, organizations won’t want to put in and configure this Group Coverage to deal with this concern,” the corporate added.

This week, Microsoft additionally confirmed that the August 2024 Home windows safety updates are breaking Linux booting on dual-boot techniques with Safe Boot enabled.

Information-Pushed Entrepreneurs Should Keep away from Information Duplication

0


There are a selection of big advantages of massive knowledge on the earth of promoting. A rising variety of entrepreneurs are utilizing massive knowledge to raised perceive their clients, discover the simplest promoting mediums and optimize their creatives.

Sadly, there are some challenges that firms utilizing massive knowledge for his or her advertising methods should cope with. One in all them is attempting to keep away from knowledge duplication.

Information duplication in data-driven advertising can create a number of issues. Initially, it will increase storage prices. It may possibly additionally trigger inefficiencies in knowledge processing and evaluation, as duplicated knowledge can skew analytics outcomes, resulting in inaccurate insights and poor decision-making. One other subject is that it can lead to poor buyer expertise; for instance, clients may obtain duplicate advertising communications, which could be annoying and diminish model status. Moreover, managing and cleansing duplicated knowledge consumes useful time and sources that may very well be higher spent on different strategic actions. Finally, knowledge duplication undermines the general effectiveness and effectivity of data-driven advertising efforts.

Information duplication could be particularly irritating for data-driven entrepreneurs utilizing Salesforce. Hundreds of firms rely upon Salesforce for details about their clients, and prospects. Groups make important segmentation and outreach choices based mostly on the information each hours. Nonetheless, the choices are solely nearly as good as the information they’re based mostly on. If the information high quality is poor, the ensuing choices might not obtain the specified outcomes. That’s why Salesforce duplicate administration instruments are more and more vital to entrepreneurs, gross sales leaders and operators alike.

What Makes High quality Information?

An information report must be correct and full. The values in knowledge fields must be legitimate and traceable to a dependable supply. If data is collected from a number of programs, the information must be in a constant and uniform format. High quality knowledge has the next traits.

  1. Accuracy. Whereas 100% accuracy is good, attaining that aim is time-consuming when knowledge comes from a number of sources. For instance, sending the identical knowledge by the cleansing course of a number of occasions might finally ship 100% accuracy; nevertheless, the information could also be outdated or irrelevant by the point 100% accuracy is reached. Establishing standards for figuring out acceptable accuracy units a tenet that ensures usable knowledge with out compromising well timed supply.
  2. Completeness. Usable knowledge is full knowledge. Pulling up a buyer report that features historic data on the quantity and forms of contact is extra useful than a report with a reputation and first contact data. Combining historic knowledge with buying historical past exhibits the variety of forms of contact wanted earlier than a purchase order is achieved.
  3. Consistency. When knowledge comes from a number of sources, the knowledge must be constant. For instance, a state subject ought to use abbreviations or full spelling to make sure the information matches within the Salesforce subject.
  4. Traceability. Information traceability is crucial when figuring out the authenticity of data. The place did the worth come from? Is the information supply dependable? If there are duplicates, which supply takes priority?
  5. Uniformity. Data ought to share the identical subject classes. A subject containing numbers must be recognized as numeric to make sure that mathematical capabilities could be carried out.
  6. Validity. Sanity checks decide whether or not the values make sense. Phone numbers have totally different lengths based mostly on the nation. Clear knowledge ensures that the values make sense, given the corresponding handle.

High quality knowledge means clear knowledge. Earlier than it’s thought of clear, the above attributes have to be addressed. If they aren’t, the result’s soiled knowledge that results in questionable outcomes.

What Makes Information Soiled?

Soiled knowledge is defective knowledge. It could comprise inaccurate or outdated data, be corrupted, or comprise duplicates. Soiled knowledge might have inconsistent or lacking data.

  1. Duplication. A number of entries with the identical or comparable data can create havoc in Salesforce. Gross sales might entry one report, whereas customer support makes use of one other. In consequence, a single supply of fact relating to a buyer is misplaced.
  2. Corruption. Information can change into unusable as it’s moved from one supply to a different. Data can change into misaligned and even misplaced. Fields could be merged incorrectly, leaving the information unusable.
  3. Incomplete. High quality knowledge is full. Though incomplete knowledge data can nonetheless be used, the accuracy of the present data could also be questionable. Was the unfinished report deserted? Did the client fail to offer the knowledge?

Utilizing defective data to make enterprise choices can produce surprising or undesirable outcomes.

How Does Duplication Occur in Salesforce?

Salesforce serves as the focus for buyer data. It permits firms to share data throughout an enterprise. Gross sales, advertising, and customer support might enter or retrieve shared knowledge. The capabilities encourage collaboration and supply complete data for decision-making.

With a number of entry factors, soiled knowledge can accumulate, lowering the effectiveness of the saved data. 3 ways Salesforce knowledge can change into soiled are:

  1. Information Entry Errors. Unintentional knowledge entry errors might create duplicate entries. For instance, individuals might spell as avenue identify in a different way, creating duplicate data for a similar entry.
  2. Information Integration Errors. Importing and merging knowledge from one other supply can result in integration errors until checks are carried out earlier than inserting them into Salesforce.
  3. Information scrapping extracts knowledge from one other software’s output. It’s used to seize knowledge from web sites for storage in Salesforce. Nonetheless, the scraped knowledge might have lacking, incorrect, or duplicate values.

Tips on how to Clear Salesforce Information

Regardless of how cautious an organization is, knowledge will at all times must be cleaned. Establishing a knowledge governance coverage makes figuring out and cleansing soiled knowledge simpler. Moreover, as your group begins to discover and notice the facility of fresh knowledge, it’s equally as vital to satisfy SOC 2 compliance requirements for to protect knowledge integrity, and safeguard buyer knowledge.  Accordingly, when trying to find a platform to check and companion with, make sure that to to totally perceive their compliance tips, and choose a specialist within the deduplication trade that meet SOC 2 compliance for knowledge safety.  Making a data-cleaning course of comparable to the next ensures that every one data meets the identical requirements.

  1. Look at Information. Step one is to have a look at the information and decide what entries are duplicates. Accuracy is crucial when in search of duplicates to keep away from having attainable duplicates get by.
  2. Take away Duplicates. Take away duplicate data, making certain the ultimate report is as full as attainable.
  3. Take away Irrelevant Information. Not each knowledge subject in duplicate data is pertinent to Salesforce. Eradicating extraneous data reduces report measurement and knowledge quantity for quicker and extra correct processing.
  4. Standardize Information. Setting knowledge requirements permits Salesforce to make use of all its knowledge to offer and ship reviews for decision-makers.
  5. Validate Information. Making certain the Salesforce data is correct means validating the information by sanity checks.

Faulty knowledge produces inaccurate outcomes. Salesforce customers want a cleaning software that removes duplicate data and inaccurate knowledge.

Why Use Synthetic Intelligence (AI) to Clear Salesforce Information?

AI algorithms can course of extra knowledge in much less time than conventional knowledge processing applications. They scale back the time individuals spend reviewing questionable knowledge utilizing comparability fashions somewhat than rule-based processing. AI can contextualize the outcomes to extract options which can be routinely utilized to enhance accuracy. Giant language fashions (LLMs) assist determine similarities and variations at a granular stage for higher matching. A powerful instance of sturdy Salesforce duplicate administration instruments is DataGroomr, which mixes AI know-how and knowledge governance finest practices to seize extra duplicates and cleanse knowledge fields for extra correct data.

  • Catches extra duplicate knowledge
  • Cleans knowledge fields
  • Incorporates AI
  • Applies finest practices

In case your Salesforce knowledge has duplicate data that complicates reporting and frustrates workers, provoke a check with a deduplication and knowledge high quality answer that eliminates duplicates, whereas leveraging machine studying methods to scale back extra duplicates from populating your date as you progress forward.  The funding to confirm data, and normalize your knowledge allows firms of all sizes to schedule and run operations autonomously and effectively.