I hereby claim:
- I am jstart on github.
- I am iamchristruman (https://keybase.io/iamchristruman) on keybase.
- I have a public key ASCsBR9KvjvFNlpYn9R-skyPjU6lRG3WJ55Wv2AhAu9wxgo
To claim this, I am signing this object:
func testPlaceSearchByTextRequestGMPSRequestCreationWithProperties() { | |
let placeProperties: [GMSPlaceProperty] = [GMSPlacePropertyName, GMSPlacePropertyPlaceID]; | |
let request = GMSPlaceSearchByTextRequest(textQuery:"pizza in New York" placeProperties:placeProperties) | |
request.isOpenNow = true | |
request.includedType = "restaurant" | |
request.maxResultCount = 5 | |
request.minRating = 3.5 | |
request.rankPreference = .distance | |
request.isStrictTypeFiltering = true | |
request.priceLevels = [GMSPlacesPriceLevel.moderate.rawValue, GMSPlacesPriceLevel.cheap.rawValue] |
- (void)testPlaceSearchByTextRequestGMPSRequestCreationWithProperties { | |
GMSPlaceSearchByTextRequest *request = | |
[[GMSPlaceSearchByTextRequest alloc] initWithTextQuery:@"pizza in New York" placeProperties:@[GMSPlacePropertyName, GMSPlacePropertyPlaceID]]; | |
request.isOpenNow = YES; | |
request.includedType = @"restaurant"; | |
request.maxResultCount = 5; | |
request.minRating = 3.5; | |
request.rankPreference = GMSPlaceSearchByTextRankPreferenceDistance; | |
request.isStrictTypeFiltering = YES; | |
request.priceLevels = @[ @(kGMSPlacesPriceLevelFree), @(kGMSPlacesPriceLevelCheap) ]; |
I hereby claim:
To claim this, I am signing this object:
{ | |
"Try Swift 2019": { | |
"talks": [{ | |
"title": "Swift Server Update", | |
"source": "youtube", | |
"videoId": "ZefmzgLabCA", | |
"details": "The Swift Server Work Group (SSWG) goal is to create a robust, healthy ecosystem for server application development with Swift. Its current focus is to encourage the development of high quality, well maintained libraries and tools that the community can reliably lean on. In this talk, we will review the latest development since the SSWG was announced Sept 2018, describe the incubation process and how to get involved, and dive into the details of some of the active projects and proposals the community and teams are working on.", | |
"speaker": { | |
"name": "Tom Doron", | |
"twitter": "https://twitter.com/tomerdoron", |
struct NestedScrollViews : View { | |
var body: some View { | |
NavigationView { | |
ScrollView { | |
VStack { | |
ForEach(0..<100) { _ in | |
ScrollView { | |
HStack { | |
Text("test test test test test test test test test test test test test") |
struct ErrorView : View { | |
var body: some View { | |
ScrollView { | |
VStack { | |
ScrollView { | |
ForEach(0..<100) { _ in | |
Text("test") | |
} | |
} .frame(width: 300, height: 500) |
struct ErrorView : View { | |
var body: some View { | |
ScrollView { | |
VStack { | |
ScrollView { | |
Text("test") | |
} | |
} | |
} |
var control = PageControl(categories: [.settings, .settings, .settings, .settings, .settings]) | |
// ViewPager is another class that basically wraps a UIScrollView, saving that one for the next article :D | |
let viewExpand = ViewPager(views: [pagerView(.red), pagerView(.blue), pagerView(.green), pagerView(.yellow), pagerView(.black)]) | |
control.delegate = viewExpand | |
control.selectIndex(0) | |
view.addSubview(control.stack!) |
enum ViewCategory : String { | |
case home = "home" | |
case info = "info" | |
case settings = "settings" | |
case interests = "interests" | |
func button() -> UIButton { | |
let button = UIButton() | |
button.setImage(UIImage(named:rawValue), for: .normal) |
struct UserResponse { | |
var _id : String | |
var first_name : String | |
var last_name : String | |
init(JSON: [String : AnyObject]) { | |
_id = JSON["_id"] as! String | |
first_name = JSON["first_name"] as! String | |
last_name = JSON["last_name"] as! String | |
} |