'how to place an element in exact place in an image in swift ui

basic I want my search bar to be in this place even if the screen size is different, the important thing that is the search bar in the middle of the wheel

        ZStack(alignment: .leading){
            
            Image( "h")
                .resizable()
                .aspectRatio(contentMode: .fit)
                .offset(x:10)
                .overlay(
                    SearchBar()
                    
                        .padding(.top, 150)
                )
            
            
            
            Text("Search for your \n favourite Exotic \n Vehicles...")
                .font(.system(size: 16))
                .bold()
                .foregroundColor(benoBlue)
                .padding(.leading, 20)
    }

but the padding is working good on some of the devices, other the search bar is completely indifferent place

my desgin



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source