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
762 views
1 answer
    Question: Are there any possible explicit uses for the empty tuple (), as a value (and not as a type) in ... beings (as instances, not types)? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I would like to be able to find the nearest smaller value in an array of numbers. For instance, if I have ... be a cleaner, functional way. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I want to stop overlapping of my View with statusbar See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
946 views
1 answer
    I have an C struct (old library, blah blah blah) which contains an C string, now I need to convert CFString and Swift ... int8....) to [CChar]. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    Hello I'm new to Swift and am using SwiftUI for my project where I download some weather data and I display it ... index]) } return result } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
822 views
1 answer
    Why does this compile? internal class A { public func f() { } } I expected f's "public" modifier ... because its enclosing class is internal. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
890 views
1 answer
    Let's say I have a piece of code like this: let x: Int? = 10 let y: Any = x Now I want to cast ... just not possible or is there another way? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
888 views
1 answer
    Anyone knows why am I getting fatal error: unexpectedly found nil while unwrapping an Optional value When i use let ... -35.28032,149.12907")! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have been trying to figure out a way to query a list of documents where I have a range filter on one ... by created at in the collection? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    In our project we were used the fabric for reporting crash, after that we have migrated the fabric with ... }/Fabric/run API_KEY BUILD_SECRET See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I've got the following code, which makes it possible to use the UIKit's UIScrollView in my SwiftUI code. It ... can I solve the error message? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
922 views
1 answer
    I would like to give a hint to the user, that my iOS app supports the Apple Watch. So I would like to link/ ... any URL schema, but it does not. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
865 views
1 answer
    I am trying to extend Character to conform to Strideable in order to create a CountableClosedRange of Character types. ... } What am I missing? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
811 views
1 answer
    This question is about using two different ways to insert objects into a Realm. I noticed that the first method ... file sizes in these cases? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
876 views
1 answer
    I am using Swift and Sprite Kit to develop a game on XCode Beta 6. In order to detect if all nodes are ... i miss something? Thanks in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
708 views
1 answer
    Swift protocols can provide default implementations for functions and computed properties by adding extensions to them. I've ... , 0.0) Why? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    Consider the following example. struct AStruct{ var i = 0 } class AClass{ var i = 0 var a: A = A ... immutable value. Can someone explain this. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
877 views
1 answer
    Swift provides the is keyword (and as?) to check whether an object can be downcast successfully: if foo is ... is this really much different? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
831 views
1 answer
    I am working on a framework for iOS, which comes with some datafiles. To load them into a Dictionary I do ... part of a struct or class. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
867 views
1 answer
    Basically I try to figure out when my viewModel get updated, it will notify view and it will refresh whole body ... store(in: &cancellables) } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Creating some new view controllers with xcode 9 so now I have a few safe areas to deal with. I am ... unsafe area though. Any thoughts? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    How could I replace nth character of a String with another one? func replace(myString:String, index:Int, newCharac: ... be equal to "Horse". See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
903 views
1 answer
    I would like to know how to achieve using a UICollectionView the desired effect of loading in demand like in ... something? Thanks in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
961 views
1 answer
    I have been able to save data in a Realm database, but have been unable to show the results in a SwiftUI ... I have time. That looks promising. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm new to iOS development and am trying to learn Swift. I'd like to apply a vertical alpha gradient to ... . Can any lend some assistance? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
915 views
1 answer
    Now I get error Property types for 'value' property do not match. Old type 'float', new type 'double' ... database or migrate is successfully? 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 made a framework that requires the sqlite3 framework. How do I add a Objective-C Bridging Header for my ... , but not for my framework. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I need to get width of a rendered view in SwiftUI, which is apparently not that easy. The way I see it is that I ... (.heavy) .opacity(0.5) } } 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

2.1m questions

2.1m answers

60 comments

57.0k users

...