Tag: example

  • iOS Swift Find Exist Fond Families In The Project

    iOS Swift Find Exist Fond Families In The Project

    This code showing the font families and real name of the fonts.   for family: String in UIFont.familyNames { print(“\(family)”) for names: String in UIFont.fontNames(forFamilyName: family) { print(“== \(names)”) } }  

  • iOS Swift Detecting Device Rotation

    How to detect device rotation event in iOS Swift 3: Detecting device rotation is not a big secret but doing this in a clean way is important. I mean adding and removing the observers in correct time/place. Many developer are adding¬†¬†observers without removing with exit. This leads memory leaks and performance issues.   override func…