5.4 C
New York
Saturday, April 12, 2025
Home Blog Page 2

ios – SwiftUI wrapping UIScrollView in UIViewControllerRepresentable – Easy methods to appropriately inset scrollbars?


The SwiftUI ScrollView lacks some options I would like and so I created a customized MyScrollView primarily based on UIScrollView wrapped inside a UIViewControllerRepresentable. Whereas this works largely tremendous, the scrollbars are usually not positioned appropriately when .ignoreSaveArea() is ready on the MyScrollView. Is there one thing mistaken with my code or is that this some bug in SwiftUI? How can this be solved?

enter image description here

var physique: some View {
    VStack {
        Textual content("Some Header Content material")
        
        MyScrollView {
            VStack {
                ForEach(0..<100, id: .self) { index in
                    Textual content("Line (index)")
                        .body(maxWidth: .infinity)
                        .background(.yellow)
                }
            }
        }
        .ignoresSafeArea()
    }
}

On this setup, the scrollbar doesn’t finish on the high of the scrollview however a couple of pixels beneath. This isn’t the case when both Textual content("Some Header Content material") or .ignoresSafeArea() is eliminated. Nonetheless, I would like the header and the protected space ought to be ignored…

Is there one thing mistaken with how the UIScrollView is used / positioned in my MyScrollView? Is the overall implementation of MyScrollView appropriate, or am I doing one thing mistaken?

struct MyScrollView: UIViewControllerRepresentable {
    let content material: Content material
    
    init(@ViewBuilder content material: () -> Content material) {
        self.content material = content material()
    }
    
    func makeUIViewController(context: Context) -> UIViewController {
        let scrollViewVC = UIViewController()
        scrollViewVC.view.backgroundColor = .clear
        
        let scrollView = UIScrollView()
        scrollView.backgroundColor = .clear
        
        let contentVC = UIHostingController(rootView: self.content material)
        contentVC.view.backgroundColor = .clear
        
        context.coordinator.contentVC = contentVC
        context.coordinator.scrollView = scrollView
        
        scrollView.translatesAutoresizingMaskIntoConstraints = false
        scrollViewVC.view.addSubview(scrollView)
        
        NSLayoutConstraint.activate([
            scrollView.topAnchor.constraint(equalTo: scrollViewVC.view.topAnchor),
            scrollView.bottomAnchor.constraint(equalTo: scrollViewVC.view.bottomAnchor),
            scrollView.leadingAnchor.constraint(equalTo: scrollViewVC.view.leadingAnchor),
            scrollView.trailingAnchor.constraint(equalTo: scrollViewVC.view.trailingAnchor)
        ])
        
        
        contentVC.willMove(toParent: scrollViewVC)
        scrollViewVC.addChild(contentVC)
        
        contentVC.view.translatesAutoresizingMaskIntoConstraints = false
        scrollView.addSubview(contentVC.view)
        NSLayoutConstraint.activate([
            contentVC.view.topAnchor.constraint(equalTo: scrollView.contentLayoutGuide.topAnchor),
            contentVC.view.bottomAnchor.constraint(equalTo: scrollView.contentLayoutGuide.bottomAnchor),
            contentVC.view.leadingAnchor.constraint(equalTo: scrollView.contentLayoutGuide.leadingAnchor),
            contentVC.view.trailingAnchor.constraint(equalTo: scrollView.contentLayoutGuide.trailingAnchor),
            contentVC.view.widthAnchor.constraint(equalTo: scrollView.frameLayoutGuide.widthAnchor)
        ])
        
        contentVC.didMove(toParent: scrollViewVC)
        
        return scrollViewVC
    }
    
    func updateUIViewController(_ uiViewController: UIViewController, context: Context) {
        context.coordinator.contentVC?.rootView = content material
    }
    
    
    func makeCoordinator() -> Coordinator {
        return Coordinator()
    }
    
    class Coordinator {
        var contentVC: UIHostingController?
        var scrollView: UIScrollView?
        
        init() {
            //...
        }
    }
}

Unlocking the Strategic Potential of Payroll With AI

0


Payroll is present process a change. As soon as seen as a purely administrative activity, it’s now being recognised for what it actually is: a wealthy, untapped supply of knowledge that may affect enterprise selections throughout HR, Finance, and Operations. And but, whereas different areas of the enterprise, from customer support to fraud detection, have embraced AI at tempo, payroll stays one of many last frontiers. Based on Strada’s 2024 International Payroll Complexity Report, solely 4% of corporations at the moment use AI of their payroll operations. Much more stunning: simply 8% have any plans to undertake it throughout the subsequent two years.

Understanding the gradual uptake

AI in payroll is commonly misunderstood. When surveyed throughout a current PAYO AI Webinar, almost half of payroll professionals mentioned they didn’t really feel assured of their understanding of how AI might be used of their roles. That’s not an absence of ambition – it’s a transparent sign that the business wants extra schooling and readability round what AI is, and what it isn’t.

A lot of the confusion stems from the hype. Phrases like ‘machine studying’, ‘generative AI’ and ‘automation’ are used interchangeably, when in actuality, they serve very completely different functions. AI fashions most relevant to payroll are instruments that automate duties, detect anomalies, or present predictive evaluation. These aren’t sentient techniques making impartial selections. They’re algorithms skilled to enhance effectivity, accuracy, and perception in very particular methods.

Sensible functions already making a distinction

AI is already delivering measurable ends in payroll environments, although its adoption isn´t but widespread. Automation stays probably the most rapid wins. By dealing with repetitive duties like tax calculations, information reconciliation, and regulatory reporting, AI may also help cut back human error and free groups to deal with extra strategic work.

Sample recognition is one other space with large potential. AI fashions skilled on previous payroll information can rapidly spot uncommon patterns, catch errors, and even assist forecast future prices or compliance points. That is particularly useful for international companies, the place payroll turns into extra complicated as operations increase throughout completely different international locations and laws.

The expertise additionally helps worker expertise. AI-powered chatbots, for example, are actually able to answering routine queries, comparable to payslip breakdowns or tax deductions, each immediately and constantly. This lightens the load on help groups whereas bettering response instances for workers.

Even advantages personalisation is evolving. AI can now analyse demographic information, job roles, and utilization traits to advocate customised advantages packages that higher align with worker wants and enhance general satisfaction.

The actual problem: Integration and belief

Regardless of the clear advantages, many companies nonetheless hesitate to totally embrace AI in payroll and far of that comes right down to information. Our analysis additionally discovered that 52% of respondents mentioned they lacked confidence within the high quality of their payroll information. With out clear, dependable information, AI fashions can’t produce significant outcomes. Actually, poor information can reinforce errors or result in incorrect insights.

That is the place integration turns into essential. When payroll operates in isolation from HR or Finance, it not solely creates inefficiencies however restricts the circulation of correct information crucial to totally leverage AI. Built-in techniques be sure that payroll doesn’t simply course of info however contributes to broader enterprise intelligence.

Safety can be a legitimate concern. Payroll entails delicate worker information, and belief in AI techniques hinges on transparency and management. Nevertheless, AI also can improve safety by clever entry controls, real-time monitoring, and automatic updates to make sure techniques preserve tempo with the most recent regulatory modifications. Applied sciences like anomaly detection can flag potential fraud or misuse far quicker than conventional auditing processes.

Folks nonetheless matter – Actually, they matter extra

The concern that AI will substitute payroll professionals shouldn’t be solely unfounded – it’s counterproductive. AI can flag discrepancies, however individuals determine what to do about them. It will probably automate filings, however professionals guarantee these filings mirror the most recent legislative modifications. And it might spotlight traits, however people nonetheless drive the decision-making.

Reasonably than changing roles, AI helps to reshape them. Payroll professionals are evolving into information interpreters and strategic advisors however provided that they’re geared up with the appropriate instruments and coaching. Upskilling is important, not solely in how one can use AI instruments, however how one can consider their output, spot errors, and add human context.

That is the place companies should act. Offering structured coaching, investing in change administration, and demystifying AI’s function in payroll will assist organisations transfer from hesitancy to confidence. The query is not “ought to we use AI?” however “how will we put together our individuals to get essentially the most from it?”

Shifting ahead with confidence

The way forward for payroll isn’t totally autonomous fairly collaborative, synergistically combining superior applied sciences and human experience. Companies that deal with AI as a supporting act, not a standalone answer, will reap the best advantages.

That begins with asking the appropriate questions:

  • The place are our handbook processes holding us again?
  • Will we belief the standard of our payroll information?
  • Are our techniques built-in or siloed?
  • How assured are our groups in working with AI?

Answering these will lay the groundwork for sustainable AI adoption – not simply as a development, however as a long-term enabler of enterprise success.

Evolving, not changing

AI isn’t a magic wand, but it surely amplifies the experience already inside payroll groups. It helps floor insights, cut back handbook pressure, and strengthen payroll’s function as a key enterprise perform. Extra importantly, it permits payroll to take its rightful place as a business-critical, insight-generating perform.

The businesses that succeed gained’t be those with essentially the most refined instruments. They’ll be those that perceive how one can steadiness expertise with belief and recognise that even within the age of AI, individuals are nonetheless essentially the most precious asset of all.

Will New Decrease-Price Tesla Cybertruck Double Cybertruck Gross sales?



Join CleanTechnica’s Weekly Substack for Zach and Scott’s in-depth analyses and excessive degree summaries, join our every day e-newsletter, and/or comply with us on Google Information!


Final Up to date on: twelfth April 2025, 01:54 am

After sending me 5 emails attempting to promote me a Tesla Cybertruck previously month and a half, Tesla despatched another earlier right this moment. It was saying a brand new “Lengthy Vary” Cybertruck. The brand new model presents a variety ranking of 362 miles on a full cost. It’s additionally cheaper than the pre-existing All-Wheel Drive mannequin and Cyberbeast mannequin. The Lengthy Vary trim begins at $69,990 (or $62,490 after the US EV tax credit score introduced into legislation by Joe Biden and Democrats, which Donald Trump and Republicans haven’t repealed but), whereas the All-Wheel Drive trim begins at $79,990 ($72,490 after the tax credit score) and the Cyberbeast begins at $99,990 (not eligible for a tax credit score).

Usually, a major step down in value will increase the customer pool exponentially. So, one has to ask, will a $10,000 cheaper price — level mixed with extra vary — result in considerably extra Cybertruck demand and gross sales?

Tesla offered 6,406 Cybertrucks within the 1st quarter, up 128.5% from the two,803 Cybertrucks offered within the 1st quarter of 2024. Although, notably, Elon Musk anticipated to promote 150,000 Cybertrucks a yr, and 6,406 gross sales 1 / 4 interprets to only 25,624 gross sales a yr, simply over one-sixth of that 150,000 automobile goal.

Additionally, after all, it was lengthy hyped that there had been over one million reservations for the Cybertruck, however a tiny fraction of these changed into gross sales, maybe as a result of the overwhelming majority of customers have been ready for a less expensive model of the truck and extra vary. Or maybe as a result of folks determined they didn’t just like the Cybertruck that a lot anyway, anticipated Full Self Driving to really be robotaxi succesful by now, or simply acquired sick of Elon Musk. Who is aware of?

The query now’s how a lot this value drop and vary improve will assist transfer extra Cybertrucks. It’s acquired to assist, however I’m a bit skeptical that it’ll do a lot. A beginning value of $69,990 (or $62,490 after the US EV tax credit score if it doesn’t get axed by Republicans quickly) continues to be fairly a hefty beginning value. (It’s an excessive amount of for me to spend.) Additionally, 362 miles for a truck (not towing) is lots for a standard individual utilizing it for primary commuting and child obligation, however many individuals shopping for a truck do wish to use it for extra and may nonetheless be not sure about that vary. (I feel such vary might be advantageous for the overwhelming majority of individuals, however I’m not a truck individual and I do know many individuals massively inflate their vary wants of their heads.)

Greater than something, although, the Cybertruck stands out lots — and I don’t assume in a great way. Somebody identified in a remark thread right here that it seemed like a dumpster, and I can by no means unsee that. I’ve really seen a handful of dumpsters that bear a hanging resemblance. Total, although, even for those who don’t have the dumpster comparability in your head, it’s tremendous clunky trying, the chrome steel isn’t precisely fairly, and the automobile appears so completely different from the vehicles folks usually purchase that I simply have a tough time believing it may entice a mass-market buyer base.

@mclovin.caplock.queen HAVING TROUBLE TELLING THE DIFFERENCE #cybertruck #cybertrucktesla #garbagecan #electrical #fyp #fypage #fypシ゚viral #easttennesseegirl #tennessee #tiktok #look #plugin ♬ Pressured Out – twenty one pilots
@wavecamper23sonic spot the distinction #cybertruck #nocyberbulling #meme ♬ unique sound – adrianaaaa

I see the inspiration now…
byu/wandpapierkritiker inCyberStuck

Can Tesla double its gross sales of the Cybertruck with this new Lengthy Vary Model? I don’t assume so, however possibly. However even when it could actually, what does that imply — 26,000 gross sales a yr? That’s nearly nothing!

Every other ideas on the brand new Cybertruck choice and client demand for the mannequin?

Whether or not you might have solar energy or not, please full our newest solar energy survey.




Have a tip for CleanTechnica? Need to promote? Need to recommend a visitor for our CleanTech Speak podcast? Contact us right here.


Join our every day e-newsletter for 15 new cleantech tales a day. Or join our weekly one if every day is just too frequent.


Commercial



 


CleanTechnica makes use of affiliate hyperlinks. See our coverage right here.

CleanTechnica’s Remark Coverage




Okibo opens New Jersey HQ and launches EG7 robotic in U.S. market

0


Okibo opens New Jersey HQ and launches EG7 robotic in U.S. market

The Okibo EG7 Robotic is a plastering robotic that operates alongside staff in a building web site. | Supply: Okibo

Okibo final week introduced the opening of its U.S. headquarters in Englewood, N.J., and the official launch of its EG7 robotic within the U.S. market. After establishing its American base in 2024, Okibo’s absolutely autonomous, AI-guided portray and drywall ending robots are already lively at main building websites, having lined greater than 1 million sq. ft. (92,903 sq. m) in Europe.

“In an trade quickly adopting applied sciences to reinforce security and efficiency, Okibo robots require no setup or technical expertise to function,” said Nadav Shuruk, co-founder and chief working officer of Okibo. “They cut back mud, enhance air high quality, and remove widespread bodily accidents on web site—robots don’t fall off ladders or undergo repetitive pressure accidents.”

The EG7 is a next-generation, battery-powered building robotic requiring zero web site preparation, exterior references, or technical experience to function, in line with the corporate. In contrast to methods that rely upon exterior markers or constructing info modeling (BIM) instruments, the robotic makes use of a patented 3D scanning and real-time modeling algorithm for navigation and execution.

Okibo claimed that the EG7 can end a median of 1,000 sq. ft. (92.9 sq. m) per hour, working utterly independently—no cords, pumps, or Wi-Fi required.

Based in 2018, Okibo designed its robots to reinforce a talented building group’s effectivity, improve security, and assist deal with the labor scarcity downside in building. The firm, which additionally has workplaces in Tel Aviv, Israel, stated its merchandise require no tech expertise or setup time. They’re absolutely impartial, battery-operated models unconstrained by exterior tools or cables, it added.

Okibo hopes to sort out the development labor disaster

The development trade faces a looming labor disaster. The Nationwide Heart for Development Schooling and Analysis projected that 41% of the workforce will retire by 2031. Okibo asserted that it presents a vital answer.

“Youthful generations raised on expertise anticipate safer, extra environment friendly job websites,” famous Shuruk. “Okibo helps companies meet these expectations.”

The corporate listed key options of the EG7:

TITAN robotic arm from PIAP Area goals to automate in-orbit inspection

0


TITAN robotic arm from PIAP Area goals to automate in-orbit inspection

PIAP stated it expects programs like TITAN to be deployed earlier than the top of this decade. | Supply: PIAP Area

PIAP Area Sp. z o. o., a Polish developer of robotics for house functions, goals to make use of robotics to chop down the time and price of sustaining multimillion-dollar satellites. The corporate yesterday launched its TITAN robotic arm, which may carry out in-orbit inspections, repairs, and satellite tv for pc upgrades.

With the exponential development of the satellite tv for pc business, Earth’s orbit is more and more crowded with lively and inactive spacecraft, famous PIAP. This congested setting raises the chance of malfunctions, collisions, and misplaced investments. Many satellites are nonetheless operational when it comes to {hardware} however turn into unusable as a consequence of failure in only one part, the corporate stated.

With out robotics, the one method to repair a satellite tv for pc is to deorbit it and substitute it with a wholly new one. This provides to house particles and skyrocketing mission prices. That’s why autonomous in-orbit servicing (IOS) is quickly turning into a strategic precedence for the European Area Company (ESA) and the worldwide house sector.

TITAN is PIAP Area’s response to those challenges. The corporate designed the robotic particularly for on-orbit functions.

“TITAN is probably the most superior of this sort of robotic manipulator ever developed in Poland and certain one of the succesful in its class throughout Europe,” stated Paweł Paśko, head of the mechatronics part at PIAP Area. “We designed it to be scalable, modular, and versatile sufficient for orbital and planetary missions. With correct sealing, it could possibly additionally function in dusty environments — together with the lunar floor coated in regolith.”

PIAP is prepared for future servicing missions

PIAP developed the high-precision robotic arm for orbital operations akin to satellite tv for pc inspection, part alternative, docking help, and module set up. TITAN has a 2 m (6.5 ft.) attain and 7 levels of freedom, permitting for sub-millimeter accuracy — 0.5 mm in positioning and 0.1° in orientation.

The corporate geared up it with a redundant structure to make sure uninterrupted efficiency. Every joint options unbiased energy strains, information buses, and thermal management to stop system-wide failure.

TITAN’s modular design additionally permits the arm to be geared up with numerous customized finish effectors, together with multipurpose grippers, sensors, and power interfaces. Its common electrical-mechanical interface allows fast configuration for satellite tv for pc seize, cable dealing with, refueling, or orbital meeting. PIAP stated this flexibility makes it appropriate for numerous use instances — from important servicing to complicated building operations in orbit.

The Warsaw-based firm, performing as prime contractor and consortium chief, introduced the profitable completion of the engineering mannequin and remaining testing. Funded by ESA with a €2.6 million ($2.9 million U.S.) contract, TITAN has achieved Expertise Readiness Stage 6 (TRL 6), proving its performance in a simulated orbital setting. This implies the system is now prepared for integration into future servicing missions.


SITE AD for the 2025 Robotics Summit registration.
Register now so you do not miss out!


TITAN to be tailored for IOSHEX initiative

PIAP can also be adapting TITAN for the IOSHEX initiative — a joint undertaking between ESA and SAB Aerospace. The undertaking’s purpose is to ascertain a long-term, in-orbit servicing platform in low Earth orbit (LEO), the place robotic arms like TITAN will carry out upkeep and refurbishment duties.

The IOSHEX module will stay in orbit for as much as 5 years as a robotic service station, whereas the ESA Area Rider car will ship alternative elements and return out of date gear to Earth for recycling. PIAP Area is liable for offering a robotic arm able to conducting exact operations in microgravity — together with on-orbit half alternative and {hardware} disassembly.

PIAP Area has already developed superior options for planetary exploration, together with the robotic arm for the ESA ARGONAUT lunar lander beneath the MANUS program. The corporate has additionally delivered a collection of modular robotic grippers developed beneath the ORBITA undertaking, contributed to satellite tv for pc refueling ideas, and took part in growing the In-Area Transportation Car (ISTV).

PIAP will formally current the TITAN prototype on April 14 and 15 in the course of the ESA Area Safety Convention in Warsaw.