Profile Photo
Hi,   My Code Snippet myTextView.heightAnchor.constraint(greaterThanOrEqualToConstant: 20).isActive = true… (Show more)
in Swift
Profile Photo
Hi,    I used below code for UITextField Keyboard Type. sampleTextField.keyboardType = .decimalPad   In the keyborad displayed,how to add % key ?   Thanks
in Cocoa Touch
Profile Photo
Hi,   My Code to get Local Time From UTC:   func getLocalTimeFromUTC(dateString: String) -> (String,String){               let dateFormatter = DateFormatter()         dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"         dateFormatter.timeZone = TimeZone(abbreviation: "UTC")                let dt = dateFormatter.date(from: dateString)… (Show more)
in Swift
Profile Photo
Hi, How to align an image and string of an attributed String to vertical center? I attached an image by using NSTextAttachment() And i appended a string. The alignment of the image and the string looks like below: GoodNoon   How to align the string to be vertically center to the image?
in Cocoa Touch
Profile Photo
Hi, How to create attributed String with rounded label in it?   Sample Image:
in Swift