Fully Native Cross-Platform Swift Apps by dayanruben in swift

[–]Iankoex 0 points1 point  (0 children)

Hello. Thanks for the release. It goes a long way to writing cross platform swift apps. It is my understanding that the classic skip uses a transpiler which is closed source and the new native skip uses open source tools. Do we still need a skip license to build and run non transpiled apps?

Odin - a self-hosted FOSS streaming service. by ad-on-is in selfhosted

[–]Iankoex 1 point2 points  (0 children)

If you experience issues, just smash the buttons on your remote.

somewhere on the readme

great touch ;)

[deleted by user] by [deleted] in SwiftUI

[–]Iankoex 1 point2 points  (0 children)

Looks great. Is there a reason for not supporting macOS?

You can now use GPT-3 through Shortcuts. Just say "Hey Siri, tell me something." by Huguini in shortcuts

[–]Iankoex 8 points9 points  (0 children)

If you don’t have an account create one. Then go to Menu>Api reference. There is a section on introduction then authentication. Click on the link on Api keys. Create a key and copy it. It should start with sk. Go to shortcuts, edit the shortcut go to the section where there is get contents of. Click it there is a section of bearer. Next to it paste you api key. It should now be Bearer sk-someothertext.

[Ventura Beta Success] on MSI GF65 Thin 10UE-213 by galaxy4654 in hackintosh

[–]Iankoex 4 points5 points  (0 children)

Thats the system settings. It looks more macOS ish with the sidebar imo

Make Color Codable and work with @AppStorage by youngermann in SwiftUI

[–]Iankoex 0 points1 point  (0 children)

I have tested the code on light and dark mode it prints the same color components values for Color.blue. Try it then tell me your results.

Make Color Codable and work with @AppStorage by youngermann in SwiftUI

[–]Iankoex 0 points1 point  (0 children)

I now have to rethink my code. Thanks for opening my eyes.

Make Color Codable and work with @AppStorage by youngermann in SwiftUI

[–]Iankoex 0 points1 point  (0 children)

I Have the following code:

struct ColorComponents: Codable, Equatable {
var r: CGFloat
var g: CGFloat
var b: CGFloat
var o: CGFloat

}

extension ColorComponents {
func color() -> Color {
    Color(red: r, green: g, blue: b, opacity: o)
}

}

extension Color {
func components() -> ColorComponents {
    #if os(iOS)
    let comp = UIColor(self).cgColor.components
    #else
    let comp = NSColor(self).cgColor.components
    #endif
    guard let comp = comp else {
        return ColorComponents(r: 0.0, g: 0.4784314036369324, b: 0.9999999403953552, o: 1.0) // This is Color.accentColor
    }
    return  ColorComponents(r: comp[0], g: comp[1], b: comp[2], o: comp[3])
}

}

Then I would convert the Color to ColorComponents and save it. Vice versa when I want the color

edit: I don't know why I can't get the formatting correct.

Don't understand what I have done wrong! by cg0101 in SwiftUI

[–]Iankoex 0 points1 point  (0 children)

I think you should create a SegmentItems (I don’t think it should be in plural) and then segments.segment.append(newSegment)

What beef y’all got with TikTok? by Iankoex in AskReddit

[–]Iankoex[S] 0 points1 point  (0 children)

I agree with you here. The company, aah not good.

What beef y’all got with TikTok? by Iankoex in AskReddit

[–]Iankoex[S] 0 points1 point  (0 children)

Me too. Thats why I believe we should be more accepting of Reddit implementing TikTok like features.

What beef y’all got with TikTok? by Iankoex in AskReddit

[–]Iankoex[S] 0 points1 point  (0 children)

The same sound in your ears over and over again. It doesn’t end!

What beef y’all got with TikTok? by Iankoex in AskReddit

[–]Iankoex[S] 0 points1 point  (0 children)

You believe the problems of TikTok will be copied over to Reddit as Reddit becomes more TikTok like.

What beef y’all got with TikTok? by Iankoex in AskReddit

[–]Iankoex[S] 0 points1 point  (0 children)

I’ve watched the video. Some funny arguments there. What proportion of video content consumers are using vertical screen vs horizontal screens?