|
Kallikrates posted:Xcode7 seems to have improved it quite a bit. Interesting about the extensions, that kinda sucks. But yeah, good call on Xcode 7. Good to hear 7 is already doing better.
|
# ¿ Aug 27, 2015 17:27 |
|
|
# ¿ May 14, 2024 19:29 |
|
Is it possible to have a protocol's default implementation in an extension work for selectors? For example, I'd like an extension to provide some gesture recognizers:code:
|
# ¿ Sep 25, 2015 04:44 |
|
Flobbster posted:Maybe the protocol (and the methods in it too, perhaps) need to be marked @objc? I tried that but the compiler yells at you "Members of protocol extensions cannot be declared as @objc". rjmccall posted:It's an area of some debate, but at least some variants of it would probably be okay, and the current inability to do that is just an unnecessary restriction. Oh okay, cool. Well here's a +1 to allowing that in a future release of Swift. I should be fine maybe making a lightweight base class that'll receive the selectors for the time being (or something to that effect). Also really enjoying 2.0 so far, great job
|
# ¿ Sep 25, 2015 12:50 |
|
Axiem posted:The real solution is to replace methods that take selectors with methods that take functions. I was rather disappointed that iOS 9 didn't do that through more of UIKit. Definitely. I just hobbled together an extension on UIGestureRecognizer to do just this with some object association. Feels pretty dirty.
|
# ¿ Sep 26, 2015 22:48 |
|
Doh004 posted:Definitely. If anyone's curious, I put up a repo with my Draggable extension: https://github.com/BayPhillips/draggable-swift
|
# ¿ Oct 3, 2015 21:21 |
|
So this is a thing: http://perfect.org/ "web brains"
|
# ¿ Nov 24, 2015 02:33 |
|
Yeah this is more super cool stuff
|
# ¿ Dec 3, 2015 19:38 |
|
Snapchat A Titty posted:Burn them! Figure a guillotine would be more appropriate!
|
# ¿ Dec 5, 2015 06:09 |
|
Is this intended:code:
|
# ¿ Feb 17, 2016 20:35 |
|
rjmccall posted:I doubt we ever explicitly considered it, but it seems reasonable enough. What else could we reasonably do, warn "hey, you probably fat-fingered something here, and we're pretty sure it's what you actually wanted, but maybe you fat-fingered something else nearby since you're such a lovely typist"? I'd be okay with this warning. I only saw this while code reviewing a PR. I yelled at the engineer because CLEARLY they hadn't actually attempted to compile their code. Much to my surprise they had and it worked just fine
|
# ¿ Feb 17, 2016 21:14 |
|
playground tough posted:So I've had this idea kickin around for an app I'd like to develop while I'm still in school for a while now. I want to prove that I can work with a decently sized project and want to learn more development skills in general. I started messing around with React Native and I'm starting to feel like it is loving dumb since I can't seem to get it to do anything I want it to do without some fuckery or hacks. Yes 100%. Please learn the actual system first instead of jumping into whatever Facebook's framework of the year may be at the time.
|
# ¿ Feb 21, 2016 16:34 |
|
Yeah this owns.
|
# ¿ Apr 5, 2016 20:29 |
|
All of my code is poo poo, regardless of the language.
|
# ¿ May 5, 2016 19:46 |
|
Would have been better off not open sourcing the language.
|
# ¿ Jul 20, 2016 21:00 |
|
As someone who is not on the Swift-Evolution mailing list, I'd appreciate a way to know who we're talking poo poo about. No, I don't care to join some mailing list or whatever the hell process it is we're talking about from 20 years ago
|
# ¿ Jul 31, 2016 23:49 |
|
Whoa, didn't know others felt the same way I did about the mailing list. I mean, I'm just being lazy and want to be "in the know" without doing any of the work. Also, I find it very hard to believe mailing lists are still the best way to have large scale discussions.eschaton posted:If you want a fuller-featured archive interface for a list you can always build one, grab the mbox files for the archives, and put it up. This is silly. No, I don't want to build an archive interface for something as straightforward as discussions. eschaton posted:You have discovered one of the other ways to deal with online discussion better than a web site. Web sites are fine for presenting archival information, for interaction that's why we haveand have hadapps. So what are web apps? Aren't forums apps? Toady posted:If people want to follow the mailing lists without using a mail client or being able to post to discussions, Hirundo is a free Swift mailing list archive browser. This is cool, I'll try it out. Thank you!
|
# ¿ Aug 2, 2016 05:09 |
|
TIL: Don't put a lot of logic inside of lazy property declarations. Unless you want your build time to blow up astronomically. Simply moving it into a private method that performs the operations kills the time like crazy.
|
# ¿ Oct 31, 2016 21:33 |
|
pokeyman posted:I will have to remember that! I have noticed the SourceKit service tends to poo poo a brick when I start typing a lazy property initializer. Yeah, I added a line to our style guide to no longer allow this. Just not worth it. ultramiraculous posted:Is this in Swift 3 or 2.3? That was (hopefully) fixed in Swift 3 I think? 2.3. After reading about the build time improvements of 3, I'm pushing forward our tech debt epic to upgrade much much sooner. Also 8.2 is the last XCode version to support 2.3 so... time to poo poo or get off the pot.
|
# ¿ Nov 1, 2016 14:25 |
|
I suggest you check out the other main iOS/Cocoa thread: https://forums.somethingawful.com/showthread.php?threadid=3400187 What you're asking for isn't Swift specific
|
# ¿ Jan 19, 2017 13:31 |
|
Our application is still using the AddressBook framework which was deprecated in iOS 9. We haven't had the opportunity to move one area of code over to the new framework just yet. Why do we see this warning for EVERY file we compile within the same target: 4 of our .swift files do reference the ABAddressBook (none of those files in the screenshot have anything to do with it), but I don't understand why this is being checked and warned about for every single file. I'm trying to figure this out in another attempt to speed up our build process. Doh004 fucked around with this message at 16:56 on Jan 24, 2017 |
# ¿ Jan 24, 2017 16:49 |
|
rjmccall posted:Is it used in your bridging header, maybe? I was going to feel like a really big putz if that were the case, but it is not. Just did a workspace wide search: *edit* This is Swift 3 on XCode 8.2 (latest). Doh004 fucked around with this message at 17:56 on Jan 24, 2017 |
# ¿ Jan 24, 2017 17:53 |
|
pokeyman posted:If anything included directly or indirectly in your bridging header pulls in a deprecation attribute you'll see exactly that issue. Any external libraries in our bridging header that in turn include AddressBook? I don't think any of our pods require the `AddressBook` framework based off me checking the "Frameworks/iOS` directory in the Pod project.
|
# ¿ Jan 24, 2017 19:31 |
|
It took us a good 3-4 days of converting from 2.3 and 3.0 and then another week of tracking down horrible bugs. It's what we get for using a young, active language.
|
# ¿ Feb 7, 2017 21:28 |
|
ManicJason posted:It took me a similarly long time to convert, but somehow everything worked except trying to use Cocoalumberjack for a mixed project. Should I be scared that I have not yet found the horrible bugs? Nah, just make sure anything that goes from IB to the code behind still works properly. When they changed up the parameter conventions, the converter missed several places that now required an "_" in its signature (but still compiled just fine as expected).
|
# ¿ Feb 9, 2017 17:06 |
|
Moogs posted:So this is a stupid noob question, but I'm a stupid noob... when I'm making an iMessage extension, how do I control what it looks like when it's half screen (like when you have Messages open and hit the app button to switch to it) and when it's full screen? I think the answer is view controllers, is that right? We made an iMessage application back for the iOS 10 launch: https://itunes.apple.com/us/app/plated-dinner-recipes-ingredients/id954364666?mt=8 Have it operate like any other application, except what would normally be your "UIApplicationDelegate" is the "MSMessagesAppViewController". You'll want to respond to the "willTransition(to presentationStyle: MSMessagesAppPresentationStyle)" and "didTransition(to presentationStyle: MSMessagesAppPresentationStyle)" delegate methods accordingly. And yes, we used a storyboard to handle these flows.
|
# ¿ Apr 10, 2017 15:09 |
|
|
# ¿ May 14, 2024 19:29 |
|
Uhh, why?
|
# ¿ Jun 15, 2017 15:03 |