if street1 != "" { if city != "" { if state != "" { Button(action: { if street2 == "" { fullAddress = street1 + ", " + city + ", " + state } else { fullAddress = street1 + ", " + street2 + ", " + city + ", " + state } manager.convertAddress(address: fullAddress) if Place(name: "Location", latitude: manager.location.latitude, longtitude: manager.location.longitude) != nil { places?.append(Place(name: "Business Location", latitude: manager.location.latitude, longtitude: manager.location.longitude)) } else { print("Place not found") } }) { ZStack { HStack { Spacer() Text("SEARCH") .foregroundColor(.blue) .font(.system(size: 26)) .fontWeight(.heavy) } HStack { Spacer() Text("SEARCH") .foregroundColor(.blue) .font(.system(size: 26)) .fontWeight(.heavy) .blur(radius: 20) } } .padding(.trailing, 20) } } } }