How to change font output in textfields via Keyboard extension in iOS - ios

I'm setting up a keyboard extension for iOS and would like for the output of the keyboard into text fields in 3rd party apps like Instagram (and other apps) to be the font "Typewriter". How do I go about doing this?
I see that this app keyboard extension was able to solve this problem https://apps.apple.com/us/app/fonts/id1454061614
This is a new iOS keyboard extension and was able to get the font inside the app and change the keyboard GUI to be the typewriter font, but not the output inside of 3rd part apps
I expect the output to be Typewriter font inside text fields in 3rd party apps

Related

Replacing system emoji with custom emoji on iOS

I want to replace the system emoji as a user is typing out with my own custom emoji image. I know Facebook Messenger is able to do this on their app so I'm curious how does this work? Their app itself can even turn on/off their own custom emojis. Is it just a custom font?
Here's a link of how it's working:
http://www.idigitaltimes.com/how-turn-facebook-messenger-emoji-company-adds-1500-new-emoji-latest-update-not-538169

Swift: How can I change the color of keyboard background and lettering?

I am building a project for iOS8 in swift. The default and dark options for keyboard in xcode do not go with the color theme for my app design.
Is there a simple way for to change the colors in the keybaord?
The short answer is no you can't change the look and feel of the system keyboard. Even if you did many people don't even use the default keyboards.
With iOS 8 apple introduced custom keyboard extension.
A custom keyboard replaces the system keyboard for users who want
capabilities such as a novel text input method or the ability to enter
text in a language not otherwise supported in iOS. The essential
function of a custom keyboard is simple: Respond to taps, gestures, or
other input events and provide text, in the form of an unattributed
NSString object, at the text insertion point of the current text input
object.
And here's some useful tutorials about how to create custom keyboard :
http://www.appdesignvault.com/ios-8-custom-keyboard-extension/
https://www.weheartswift.com/make-custom-keyboard-ios-8-using-swift/

How does Fleksy change the keyboard color without RequestsOpenAccess?

There’s a new Fleksy keyboard release for iOS 8 featuring a keyboard extension. The color of the keyboard extension can be changed from the containing Flexy.app without turning on the RequestsOpenAccess mode (or “Allow Full Access” in the UI). How is that possible when the containing app and the extension share no container?
(Now that I think about it, this is a huge security question, too. If the containing app can communicate with the keyboard extension, maybe it can also read your keystrokes? I’m not saying that Fleksy does it, just that it should be impossible in principle, unless the extension is granted full access.)
I see. The app doesn’t communicate with the keyboard through the shared container, it communicates through the sample textfield in the app. When user taps to change the color theme, the app inserts a special string into the textfield, the keyboard notices the string, parses the theme name and stores the setting in its own user defaults.

iOS 7 Custom Keyboard & Current Font -- Can they be linked?

Is there a way for an app to have a custom keyboard reflect the currently selected font?
For instance: You are a crazy/drunk person, and want to type up a document using the font Comic Sans. Upon selecting the font you want to use, the letters on the keyboard appear in that font.
Can this be done?
Would it require a custom keyboard for each available font in the app?
In my opinion, you have to create a one custom keyboard mimicking the default keyboard. Since you will have access to the keys of your custom keyboard you can change the font for the keys.
So you would need only one custom keyboard and a way to change the font for the keys in the keyboard.

iOS sharing images with text in messages like Emoji

The goal is to be able to insert images with text when sharing text into an SMS Message from the App as well as in e-mails. Like it is in the picture below. When I try to share images with the UIActivityViewController the images appear on the next line and not next to the text. Is it possible to embed images in text and e-mail like the built in Emoji text?
The contents of text messages are just that, text (that is, a sequence of Unicode code points.) The emoji images you see in the screenshot come from a system font installed on all iOS devices, and are represented in the text as unicode code points, just like the other regular letters in the same message.
If you want to embed custom images into text fields in your app, you can create a custom font that includes the desired graphics (for some code points in the Unicode private use area,) include the font in your app as an asset, configure your text fields to use that font, and then provide some UI for the user to type those code points in.
But remember that this will only work on devices that have your custom font installed, and in apps that choose to use that custom font to display the text — so essentially only in your own app. So for example if you'd send the text in an email or iMessage/SMS to another device, your custom graphics would not work unless a) the receiving device has your custom font installed system-wide, and b) the app displaying the text resolves the Unicode private use area code points you chose to use for your images to this custom font of yours.
If you only want to embed images into text fields within your own app, on iOS 7 and later you can use the text attachments feature that TextKit supports.

Resources