Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Swift

0 votes
997 views
1 answer
    If I have an array: let array = [ ["Hamburger", "Nachos", "Lasagne"], ["Tomatoes", "Apples", "Oranges ... there a way to get it programmaticly? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
626 views
1 answer
    I am loading a view (shaped a circle) from a circle. I want to make sure, the circle's size adapts to ... is the shape in the question). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
598 views
1 answer
    I am working on a messaging app using JSQMessagesViewController, and I want to associate another variable, an ... the superclass 'JSQMessage' See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
686 views
1 answer
    I am doing my first steps in Vapor, the web framework for Swift. The first piece of code that called my ... and how the compiler interprets it. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
660 views
1 answer
    I'm new to asynchronous coding and am wondering if the method I'm using to fetch and display data is considered ... being the image I guess. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
589 views
1 answer
    I'm trying to build up a family of types that can be converted to each other. For example, Float and Double ... constraint that ensures T != U. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
734 views
1 answer
    I'm very new to Firestore and trying to understand how the real-time updates work. I'm using something like ... of help is highly appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
645 views
1 answer
    I have four squares in the middle of my scene set up with various anchor points. When tapped, they move ... post more code if necessary. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I decided to play with Swift case statements and tuples. It looks like one of the cooler features of the ... case of a switch statement? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
836 views
1 answer
    I am doing this Augmented Reality project starting from Xcode's default AR project. I need to know the focal ... of ARCamera used by RealityKit? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
674 views
1 answer
    I am working on a gist: PasteboardWatcher.swift in which I invoked a NSTimer object like this: func startPolling ... it from other classes? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
767 views
1 answer
    I'm trying to write an extension to satisfy a protocol in an extension like so: extension UIColor: JSONRepresentable { ... init?(json: Any) } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
677 views
1 answer
    I would like to use a swift higher order function (map) to remove all Subviews from a given UIView.subviews array ... from me at this point. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
713 views
1 answer
    We are building a real-time chat app using Firestore. We need to handle a situation when Internet connection is ... , and when that happened. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
723 views
1 answer
    I'm trying to use Parse LiveQueries. I use this Parse "Bootstrap": "https://github.com/parse-community/parse- ... in handler(channel) } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I am trying to use the SF rounded font in my SwiftUI project, how would you set it? I already tried messing ... set it to this rounded font) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
881 views
1 answer
    I'm using SwiftUI's new app lifecycle coming in iOS 14. However, I'm stuck at how to access my AppState ( ... to use the old UIKit lifecycle? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
889 views
1 answer
    How can I create a popup menu like the one present in WhatsApp? Sorry for the dumb question, but I don't even ... sure it's not a UIPickerView. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I fail to understand the problem Xcode is confronting me with in this line: iteration.template = template[ ... of the second Substring. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
635 views
1 answer
    I recently asked a question which had a pretty obvious answer. I'm still working on the same project and ... = true fixes the described problem See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
798 views
1 answer
    Here's a very simple recursive function: func lap (n: Int) -> Int { if n == 0 { return 0 } ... "Variable used within its own initial value" See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
915 views
1 answer
    In order to convert a String instance to a Data instance in Swift you can use data(using:allowLossyConversion:) ... -unwrap such a conversion. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
754 views
1 answer
    In Swift 4 many on the Foundation team have discussed how much easier it is to use keyPaths as compared to ... 't find any clear resources. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
717 views
1 answer
    OS: Ubuntu 16.04 Swift Version: 3.0 Preview 6 I'm following this getting started page In greeter.swift func ... -tool -f .build/debug.yaml See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
786 views
1 answer
    I saw this question, with this code: protocol Flashable {} extension Flashable where Self: UIView { func flash() { ... not sure of the why... See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
753 views
1 answer
    I am trying to read the currently playing track of iTunes using ScriptingBridge. I found a couple of other ... playing song of iTunes? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
892 views
1 answer
    I am in trouble how to implement websocket function to my swift code. I have completed a server implementation ... Please give me some advice? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
635 views
1 answer
    My objective is to have secondBody 'orbit' firstBody with a constant velocity (500 in this case). Based on ... setting can be removed. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...