SwiftUI: Unable to pass View into CustomView using Parameters

i’m currently having issues with sending a custom view through into another view as a parameter. All the other parameters work perfectly, it’s just the view. I’ve setup everything within a single swift file to encapsulate the enviroment to trouble shoot but i just get: Cannot convert value of type ‘Text’ to expected argument type… Read More SwiftUI: Unable to pass View into CustomView using Parameters

Cakephp api POST request , saving data without validation

I have created a route with Api prefix $routes->scope(‘/api’, function (RouteBuilder $routes) { $routes->setExtensions([‘json’]); $routes->post( ‘/add-categories’, [‘controller’ => ‘Miles’, ‘action’ => ‘addCategories’,’prefix’=>’Api’] ); } I have created a controller file in directory Controller/Api/MilesController.php I have created a addCategory method like below public function addCategories() { $categoriesTable = $this->fetchTable(‘Categories’); $categoryEnt = $categoriesTable->newEmptyEntity(); if ($this->request->is(‘post’)) { $category… Read More Cakephp api POST request , saving data without validation