So I just recently started developing in Swift and I couldn't seem to find a solution to this online. Brackets in Swift seem to be really counterintuitive and ugly (or maybe I'm just not used to it yet). For example, in Java or C# brackets would look something like this by default in Visual Studio:
if (hello)
{
if (yes)
{
print("hello")
}
}
But in Swift/XCode, it might look something like this.
do {
let realm = try Realm()
try realm.write {
realm.add(self)
}
} catch let error as NSError {
etc...
Is there a way to change the default bracketing system such that every time I open up a bracket, it doesn't look so unformatted?