Welcome to Jonic Developer 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
1.6k views
1 answer
    If I have 3 items inside a Horizontal Stack, I thought I could do something like this: HStack{ Text("test") Spacer() item2() Spacer() Text("test") ... can I make it so item2() is always centered? Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    How can I make a query to get all bookings of all users that have timestamp in the range of 1519912278 ...1520689878 ? In Firebase docs it states that I ... on the UsersProfile "Name": "John Doe" } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    If I had a @State or an @ObservedObject variable with an array property, and I wanted to use List and pass a binding of each element of the ... // more required extensions to Collection and Sequence here See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    how can I set a property to my CoreData Object which has the type CDObject, it has a property called name: String My issue is now that I do not know how ... View: let itm = CDObject() itm.name = "Hello" See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    When a user taps an overlay, the following code is triggered: func mapView(_ mapView: GMSMapView, didTap overlay: GMSOverlay) { } I wonder if we can ... of the overlay that has been tapped? Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I have got this code: protocol GenericProtocol: class { associatedtype type func funca(component: type) } class MyType<T> { weak var delegate: GenericProtocol? ... I can get this code to compile? Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I am having an issue with the way the model is being placed on the scene view. The problem is that the model downloads successfully but for some reason ... addChildNode(node) } catch{ print(error) } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    Why I can't define enumeration with raw values like this? enum Edges : (Double, Double) { case TopLeft = (0.0, 0.0) case TopRight = (1.0, 0.0) case BottomLeft = (0.0, 1.0) case BottomRight = (1.0, 1.0) } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    My app supports 5 languages. I have a string which has some double quotes in it. This string is translated into 5 languages in the localizable.strings files ... , so to avoid the words in between quotes. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I am trying to login account using phone number authentication using firebase. Initially, i deployed the app with my device and it works fine. But when i ... device it still gives me error. I wonder why? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    I looked through different questions here, but unfortunately I couldn't find an answer. This is my code: SceneDelegate.swift ... let contentView = ... string, I need a connection in both directions. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I've this code that I made on playground to represent my problem: import Foundation var countries = ["Poland":["Warsaw":"foo"],"England":["London":"foo ... a work around or the best way to make this work? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    One thing that originally discouraged me from incorporating too much optional binding in my code was the addition of more variable names. For example, I ... use with optional binding? Thanks for reading. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.2k views
1 answer
    Up until recently let url = NSURL (string:http://asite.com) let request = NSMutableURLRequest(URL: url!) //iOS loads the mobile version of asite.com which ... for my app to auto update to the newest one? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I'm trying to use prefersLargeTitles from iOS 11 in my application. It works as expected in subclasses of UITableViewController: navigationController?.navigationBar. ... normal one. How to solve this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I'm receiving notifications from Firebase in the AppDelegate class. This notification contains a String named "notif_url". I've put this value in a var named " ... text)!) my_web_view.goBack() } } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I am new to Mac and am writing my first app using Core Data. I have a data model in which there is entity SizeRecord which has single attribute "size ... ? It must be something very simple and stupid :) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.0k views
1 answer
    I am using iOS SDK 8.1 trying to call requestWhenInUseAuthorization() method to prompt user to grant access to my app. I imported CoreLocation.framework, and ... App", "Always". But nothing was selected. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I observed something really strange. If you run this code in Swift: Int(Float(Int.max)) It crashes with the error message: fatal error: ... the expected 9223372036854775807! What is wrong with swift? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    I am developing an Ionic Capacitor plugin which imports 2 iOs .framework files and a .bundle that refers to one of this .framework files. The thing is that ... of the plugin that I am trying to do. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
3.0k views
1 answer
    I'm new to Swift and I'm getting this Error. I don't get it because I don't use any type of alert in my code. Here is my ... example and any website which uses the location like google maps. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    I am trying to draw a semi-circle button. I'm having trouble both drawing the semi-circle and attaching it to the button I made in xcode. ... .path = circlePath.CGPath sunButton.layer.mask = circleShape See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I need to make the arms and hands rotate around the center of the hook, as shown in the image below without them separating or changing their shape (no ... can I get the rotation in the image first image? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I should see 2 yellow triangles, but I see nothing. class Terrain { private class func createGeometry () -> SCNGeometry { let sources = [ SCNGeometrySource( ... -custom geometry which I see. What's wrong? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    Lets say I have created this protocol and a couple of classes import UIKit protocol ControllerConstructorProtocol { class func construct() -> UIViewController? ... viewController = array[0].construct() See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    I want play embedded YouTube video in iOS app using YTPlayerView provided at https://developers.google.com/youtube/v3/guides/ios_youtube_helper When I tried to play ... (string: "http://www.youtube.com")) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I have a CollectionView that I am using images from Firebase Storage to fill. I store the images under 'userId' node. I want to check the files ... can I retrieve images in bulk from Firebase Storage? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    I am writing an ARKit app that uses ARSCNView hitTest function. Also the app sends captured images to the server for some analysis. I notices when I do: ... size" (e.g. coordinates) is used in hitTest? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
...