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
830 views
1 answer
    I've got two buttons in a list, tho when tapping, the full area of the list item is highlighted. Is ... foregroundColor(.accentColor) } } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I want to use a UIColor as foregroundcolor for an object but I don't know how to convert UIColor to a ... : 5).foregroundColor(UIColor(myColor)) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
800 views
1 answer
    I have created a custom text field and I'd like to take advantage of Combine. In order to be notified ... utilise Combine. Thanks in advance See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Normally I am updating image with url to firebase storage with: Storage.storage().reference().child("profile_images"). ... how to handle it now? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
768 views
1 answer
    I am trying to write a function in Apple Swift (iOS) that will generate any given amount of unique random numbers ... want to keep it to that. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
835 views
1 answer
    How can I add an additional property based on a condition? With my code below I got the error Cannot assign value of type ' ... () { // ... } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    If your iOS device is set to use a region that defaults to 12 hour time (e.g. United States) and you ... same default 24 hour time settings See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
740 views
1 answer
    protocol P : class { var value:Int {get} } class X : P { var value = 0 init(_ value:Int) { self. ... think it has nothing to do with @objc. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'm trying to present a viewcontroller with a transparent background on both iOS 7 and iOS ... github.com/pbassut/TransBackgroundViewController See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
820 views
1 answer
    I am trying to us SQLite Browsers to see my Core Data objects. I am not able to find where does the ... simulator) save its SQLite files on? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
712 views
1 answer
    For instance, given the following strings: let textEN = "The quick brown fox jumps over the lazy dog" let ... easy approach to achieve it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
630 views
1 answer
    I read this question but it didn't answer my question. To me Headers and Parameters are both dictionaries ... or build versions through headers See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I need to update status bar style on every view controller based on the background color (what UINavigationController ... 2, targeting iOS 12. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am new to core data. What I am trying to DO: I am trying to create a cocoatouch framework that ... !.popViewController(animated: true) } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
887 views
1 answer
    The simplified scenario is the following. New project using Single View App template. Add a UITextField to the ... at the breakpoint line. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    The following tests works fine on iOS 11. It dismisses the alert asking permissions to use the locations services ... iOS 10. (33278282) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
721 views
1 answer
    Is it possible to add protocol compliance to a different protocol by way of an extension? For instance we would like ... { return UIView() } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
777 views
1 answer
    I'm using ObjectMapper (https://github.com/Hearst-DD/ObjectMapper) to map my JSON to Swift objects. Say I ... JSON objects? Thanks so much! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
940 views
1 answer
    I'm aware you can use MemoryLayout<T>.size to get the size of a type T. For example: MemoryLayout< ... Swift and its interoperability with C. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    Edit: This problem occurs after XCode 12 Beta5. Xcode doesn't allow different modules to define same names ... compile with Legacy Build System See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I am trying to randomly choose an enum value: enum GeometryClassification { case Circle case Square case Triangle case ... How do I solve this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
852 views
1 answer
    I was very confused about forced unwrapping and implicit unwrapping at first. Now, the following understanding comes ... you correct me. Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
751 views
1 answer
    ***** You can download this project to see the issue ***** I've embedded SLPagingViewSwift in my project. In the ... see the issue ***** Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I try to upload data using Alamofire Issue is: if I try to upload image from project it works ok, but if I ... some question feel free to ask! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
669 views
1 answer
    I have made a view with two possible bottom sheets. The action works, and Bottom Sheets do open. Crazy thing is they ... , 35) Spacer() } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
969 views
1 answer
    I have the following InputView struct and add those InputViews dynamically within a foreach loop in another view: ... achieve this in SwiftUI? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
686 views
1 answer
    I am building an app whose root view controller must be changed if the user is logged in. Say if the user ... help me figure out the issue See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
789 views
1 answer
    I'd like to change the text font and color of the Cancel button inside the UISearchBar in iOS 8. I've tried the ... and they don't seem to work. 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

...