Sen. Lindsey Graham cracked wise about President Donald Trump’s “very stable genius” comment on The View Monday – but then proceeded to compliment Trump’s electoral accomplishments and leadership in the White House.

“If he doesn’t call himself a genius, nobody else will,” the South Carolina Republican told the hosts.

On Saturday morning, Trump tweeted that the mainstream media was attempting to discredit him by questioning his mental stability. “Throughout my life, my two greatest assets have been mental stability and being, like, really smart. Crooked Hillary Clinton also played these cards very hard and, as everyone knows, went down in flames. I went from VERY successful businessman, to top T.V. Star….to President of the United States (on my first try). I think that would qualify as not smart, but genius….and a very stable genius at that!” Trump tweeted.

“He beat me like a drum,” Graham said Monday about the presidential primary. “You can say anything you want about the guy. I said he was a race-baiting, xenophobic, religious bigot. I ran out of things to say. He won. Guess what. He’s our President now.”

When the hosts of the View asked Graham if he had retained those characterizations of Trump, Graham initially changed the subject, but ultimately said he did not display those characteristics as president. “In my view, he’s my president, and he’s doing a really good job on multiple fronts,” he replied.

Graham’s praise of the president marks a turnaround for him. As Trump noted Monday, Graham repeatedly disparaged him during his candidacy. But, the two have since developed somewhat of a surprising rapport.

“Lindsey. Used to be a great enemy of mine, now he’s a great friend of mine. I really like Lindsey. Can you believe that? I never thought I’d say that but I do like him a lot,” Trump said in a meeting with Republican Senators about immigration.

“Thank you,” Graham responded. “I like me too, so we have something in common.”

Get our Politics Newsletter. The headlines out of Washington never seem to slow. Subscribe to The D.C. Brief to make sense of what matters most. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Alana Abramson at Alana.Abramson@time.com.