This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
var body: some View { | |
VStack { | |
HStack { | |
Spacer() | |
Button { } label: { | |
Image(systemName: "power") | |
.resizable() | |
.aspectRatio(contentMode: .fill) | |
.padding() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
@State var selection: Set<Int> = [0] | |
@State var search = "" | |
var body: some View { | |
NavigationView { | |
List(selection: self.$selection) { | |
Section(header: Text("Favorites")) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
@State var selection: Set<Int> = [0] | |
@State var search = "" | |
var body: some View { | |
TabView { | |
NavigationView { | |
List(selection: self.$selection) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "kyiz0pkjsx75lgnm6wi", | |
"name": "Import from Airtable", | |
"description": "", | |
"color": "red", | |
"actions": [{ | |
"id": "kyj1sgob42s5s6o8ef8", | |
"command": { | |
"name": "note", | |
"metadata": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { widget } = figma | |
const { Rectangle, AutoLayout, Frame, Text, useSyncedState, usePropertyMenu, useEffect, Ellipse } = widget | |
function Dot(props) { | |
let visible = props.visible | |
return ( | |
<Ellipse | |
opacity={visible ? 1 : 0} | |
width={24} | |
height={24} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
VStack(spacing: 0) { | |
Color.green | |
Color.green | |
Color.green | |
Color.yellow | |
Color.orange |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Settings.swift | |
// Settings | |
// | |
// Created by Jordan Singer on 2/20/21. | |
// | |
import SwiftUI | |
struct Settings: View { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// San Francisco: 37.7749, -122.4194 | |
// New York: 40.7128, -74.0060 | |
import SwiftUI | |
import MapKit // be sure to import MapKit | |
import PlaygroundSupport | |
struct ContentView: View { | |
@State var latitude = 37.7749 | |
@State var longitude = -122.4194 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import PlaygroundSupport | |
struct AppleTV: View { | |
var body: some View { | |
ZStack { | |
// Image(uiImage: #imageLiteral(resourceName: "IMG_6281.JPG")) | |
// .resizable() | |
// .aspectRatio(contentMode: .fill) | |
Color.gray |
NewerOlder