https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=community&channel=Stable&version=VS18
https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=enterprise&channel=Stable&version=VS18
| import SwiftUI | |
| /// View that observes its position within a given coordinate space, | |
| /// and assigns that position to the specified Binding. | |
| struct PositionObservingView<Content: View>: View { | |
| var coordinateSpace: CoordinateSpace | |
| @Binding var position: CGPoint | |
| @ViewBuilder var content: () -> Content | |
| var body: some View { |
| import SwiftUI | |
| import RevenueCat | |
| struct Constants { | |
| static let apiKey = "<your_api_key>" // Will look like: appl_bunchofotherstuffhere | |
| static let entitlementName = "<your_entitlement_name>" // I use something like "pro" | |
| } | |
| @main | |
| struct ATinySampleApp: App { |
| // Created on 7/9/2020. | |
| // | |
| // Developed by: Kilo Loco | |
| // Improved by Egzon Pllana | |
| import Foundation | |
| import StoreKit | |
| protocol IAPServiceDelegate: class { |
| // | |
| // SnapCarousel.swift | |
| // prototype5 | |
| // | |
| // Created by xtabbas on 5/7/20. | |
| // Copyright © 2020 xtadevs. All rights reserved. | |
| // | |
| import SwiftUI |
| tvOS 10: 1080p + H.264 | |
| http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/entries.json | |
| tvOS 11: 1080p/4K + SDR/HDR + HEVC | |
| https://sylvan.apple.com/Aerials/2x/entries.json | |
| https://t27q97zg19.execute-api.us-east-1.amazonaws.com/prod/aerialAltJSON/4kEntites.json | |
| tvOS 12: 4K + SDR/HDR + HEVC, 1080p + H.264, localised descriptions | |
| https://sylvan.apple.com/Aerials/resources.tar |
| import Foundation | |
| import SpriteKit | |
| class Box { | |
| let sprite: SKShapeNode | |
| let cellAddress: XYPair | |
| var position: CGPoint { | |
| get { return sprite.position } | |
| set { sprite.position = newValue } |
| import React from 'react'; | |
| import {Editor, EditorState, CompositeDecorator} from 'draft-js'; | |
| const getEmojiURL = (key) => { | |
| // TODO: fulfill cases | |
| // TODO: "ReactEmoji.emojify(key, {singleEmoji:true}).props.src" if you prefer. | |
| switch(key) { | |
| case ':smile:': return 'https://twemoji.maxcdn.com/svg/1f603.svg'; | |
| case ':shit:': return 'https://twemoji.maxcdn.com/svg/1f4a9.svg'; |
| func imageByAddingBorder(width: CGFloat, color: UIColor) -> UIImage? { | |
| UIGraphicsBeginImageContext(self.size) | |
| let imageRect = CGRect(x: 0, y: 0, width: self.size.width, height: self.size.height) | |
| self.draw(in: imageRect) | |
| let context = UIGraphicsGetCurrentContext() | |
| let borderRect = imageRect.insetBy(dx: width / 2, dy: width / 2) | |
| context?.setStrokeColor(color.cgColor) |