Month: January 2019

Version 1.1

For this version, I focused on improving the user experience: * in the result overview you will now see up to two lines of the title and three lines of the abstract * furthermore in the result list an icon indicates whether a PDF is readily available (green) or a click to is needed […]

Swift 4: Adding new UI Elements to the Main.strings file, which Xcode auto-generates for you

When you are ready to localize your App, Xcode will auto-generate a Main.strings file for your Main Storboard. In that file every element of the User Interface (labels & more) are listed in the following format: /* Class = “UILabel”; text = “Subtitle”; ObjectID = “y5E-9n-LU8”; */ “y5E-9n-LU8.text” = “Untertitel”; That’s a pretty awesome format, […]

Swift 4: Help align UITextView to other labels, by avoiding the annoying inset

When aligning a UITextView with other labels on the screen, the inset becomes an issue. It is easy enough to work around, however if you wanted to just “switch” them off, you can add the following to your ViewDidLoad Function: textView.textContainerInset = .zero textView.textContainer.lineFragmentPadding = 0  

Scroll to top