Upvote:1
The UK does not have a rule on how long one could spend in the country during a given time period. At the border, officials may look at frequent, repeated, or regular visits and consider whether they coincide with visa- or visa-free-entry conditions. Your stay was to to maintain your relationship, very much in line with your intended marriage and your return with an appropriate visa.