Post

Replies

Boosts

Views

Activity

Reply to Non-text custome keyboard
Is the keyboard for your own app only ? If so, you can do it: https ://www.reddit. com/r/iOSProgramming/comments/9wlzkj/canicreateacustomkeyboardwithanyimages_as/ If you want a general purpose extension (for all apps), that's not possible. Only workaround I can image is to create a custom font. https://developer.apple.com/documentation/uikit/text_display_and_fonts/adding_a_custom_font_to_your_app
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’21
Reply to TextField
It is not as easy as with UIKit, but here are a few options: https://stackoverflow.com/questions/59003612/extend-swiftui-keyboard-with-custom-button
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’21
Reply to Creating an object
 how I can create a button for my work in progress app Where do you want to create the button ? In a viewController ? What does not work ? 1 - inserting the button in the view ? 2 - connecting the button to an IBOutlet or to an IBAction ? For the first: Open the storyboard in Interface Builder select the ViewController Click on + at the top right to open the objects library search for button drag and drop the button where you want in the ViewController For the second, you should check that: the class defined for the ViewController in Interface Builder (in the Identity Inspector) is the class defined in the code for the class if not set the class as needed if class is defined as class MyViewController: UIViewController { } then, the VC in IB must be of this class MyViewController If that is not the problem, please explicit precisely the problem, what you try, what you expect, what you get, with a detailed sequence of your actions.
Jan ’21
Reply to Xcode
What is the exact problem you have when you try to download ? What error message do you get ? Which version of Xcode do you load ? With High Sierra (10.13.6), you cannot load beyond Xcode 10.1. So either : update to more recent MacOS, as Catalina download Xcode 10.1 ; find it here: https://developer.apple.com/download/more/ If that solves your problem, don't forget to close the thread by marking the correct answer. Good luck.
Jan ’21
Reply to unrecognized selector sent to instance 0x7fd5966131a0"
When you paste code, use Paste and Match Style to avoid all the extra lines. And use Code formatter (<>) tool import UIKit class SecondScreenViewController: UIViewController { &#9;&#9;@IBAction func BackButton(_ sender: Any) { &#9;&#9;&#9;&#9;print("ButtonPressed") &#9;&#9;} &#9;&#9;override func viewDidLoad() { &#9;&#9;&#9;&#9;super.viewDidLoad() &#9;&#9;&#9;&#9;// Do any additional setup after loading the view. &#9;&#9;&#9;&#9;print("view has loaded") &#9;&#9;} } Where does crash occur ? Line 7 ? What do you get printed on the console ? Please provide full copy. Where is the button added ? In the viewController or in a navigation bar ? Have you created a segue from the button ? Did you check the connection from button in IB to its IBAction ? Maybe you have changed the name of the IBAction in code, directly, and not using the Refactor > Rename command ? Best would be to : remove the connection (In IB, open the connections Inspector, click on the x sign in front of backButton) recreate the connection with control-drag do an option clean build folder Notes: property and function names should always start with lowercase as backButton backButton is not a very good name for an action (it is more for the outlet) ; you better name it just back or backAction if you prefer.
Jan ’21
Reply to View and subviews after transformation
That means that during the transform action, the subviews are not modified. But at the end of transform, when everything is redrawn, the subviews are redrawn in the new coordinate system. AFAIU, It is just as if, during transform, there were snapshots of the subviews (aka freeze) and they were unfrozen after the end of transform. In fact, it is the same with animations. And doc states (bold is mine): You typically modify the transform property of a view when you want to implement animations. For example, you could use this property to create an animation of your view rotating around its center point. You would not use this property to make permanent changes to your view, such as modifying its position or size a view within its superview’s coordinate space. For that type of change, you should modify the frame rectangle of your view instead. So that implies: it can ignore its superview’s transform during drawing and layout. that during transform (animation), if the subviews redraw, they may ignore the transform The best to perfectly understand this subtleties, is to experiment a lot by yourself.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’21
Reply to Parse XML in SwiftUI
OK, that's the code. Where is the problem ? What do you expect ? What do you get ? Note: you'd better not mention the name of your customer. I am not sure they'll appreciate this post so much if they see it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’21
Reply to How to share image & text/url using UIActivityViewController
have you tried using AnyObject ? let activities: [AnyObject] = [image as AnyObject, text as AnyObject] I read this (but could not check) https://stackoverflow.com/questions/35931946/basic-example-for-sharing-text-or-image-with-uiactivityviewcontroller-in-swift According to FB update policy, either a URL or an image can be shared. text can't  Have you checked what you can do on FaceBook ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’21
Reply to how to get points ?
To get points you need to answer questions and wait for some developers to mark your answer as correct or useful. For instance, if you mark this answer as correct, my own reputation increases by 15 points. Note also that your question has nothing to do with the tags : Swift, iOS, Xcode. If you intent to use this forum, please use the correct tags. Have a good day.
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’21